{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "█\r"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Getting uuid of QR code.\n",
      "Downloading QR code.\n",
      "Please scan the QR code to log in.\n",
      "Please press confirm on your phone.\n",
      "Loading the contact, this may take a little while.\n",
      "Login successfully as 王奇文\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "男性好友：55.72%\n",
      "女性好友：38.93%\n",
      "其他：5.35%\n"
     ]
    }
   ],
   "source": [
    "import itchat\n",
    "# 先登录\n",
    "itchat.login() \n",
    "# 获取好友列表\n",
    "friends = itchat.get_friends(update=True)[0:]\n",
    "# 初始化计数器，有男有女，当然，有些人是不填的\n",
    "male = female = other = 0\n",
    "# 遍历这个列表，列表里第一位是自己，所以从\"自己\"之后开始计算\n",
    "# 1表示男性，2女性\n",
    "for i in friends[1:]:\n",
    "    sex = i[\"Sex\"]\n",
    "    if sex == 1:\n",
    "        male += 1\n",
    "    elif sex == 2:\n",
    "        female += 1\n",
    "    else:\n",
    "        other += 1\n",
    "# 总数算上，好计算比例啊～\n",
    "total = len(friends[1:])\n",
    "# 好了，打印结果\n",
    "print(u\"男性好友：%.2f%%\" % (float(male) / total * 100))\n",
    "print(u\"女性好友：%.2f%%\" % (float(female) / total * 100))\n",
    "print(u\"其他：%.2f%%\" % (float(other) / total * 100))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Alias</th>\n",
       "      <th>AppAccountFlag</th>\n",
       "      <th>AttrStatus</th>\n",
       "      <th>ChatRoomId</th>\n",
       "      <th>City</th>\n",
       "      <th>ContactFlag</th>\n",
       "      <th>DisplayName</th>\n",
       "      <th>EncryChatRoomId</th>\n",
       "      <th>HeadImgFlag</th>\n",
       "      <th>HeadImgUrl</th>\n",
       "      <th>...</th>\n",
       "      <th>Sex</th>\n",
       "      <th>Signature</th>\n",
       "      <th>SnsFlag</th>\n",
       "      <th>StarFriend</th>\n",
       "      <th>Statues</th>\n",
       "      <th>Uin</th>\n",
       "      <th>UniFriend</th>\n",
       "      <th>UserName</th>\n",
       "      <th>VerifyFlag</th>\n",
       "      <th>WebWxPluginSwitch</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33656871</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>1.0</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66182623...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>自律更自由</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>965715160</td>\n",
       "      <td>0</td>\n",
       "      <td>@0ae74760e7bf11dda4fc9ba57e6e4e40</td>\n",
       "      <td>0</td>\n",
       "      <td>0.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>101821</td>\n",
       "      <td>0</td>\n",
       "      <td>太原</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953222...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@9da75f3777a92a2c52b5f6864a49b61607791472dccc0...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>104485</td>\n",
       "      <td>0</td>\n",
       "      <td>徐汇</td>\n",
       "      <td>8195</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66145056...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@9318937ca4e45fb1d6ab87899d308df34099820903df1...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>39</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=740247&amp;u...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>经风雨，见彩虹。</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@1990ff7795f44705bbd36a1eefab7c8907f9a9c573377...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>185</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62093004...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>厚德载物，自强不息。</td>\n",
       "      <td>16</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@34cb4139b755be6cbba63f15b5e46a7f2b8ee94c7dd14...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>13409</td>\n",
       "      <td>0</td>\n",
       "      <td>贵港</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62063175...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@a9f68b9a37f8ab6624c48558aff91dc303e0ee5d36651...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>100700197</td>\n",
       "      <td>0</td>\n",
       "      <td>Las Vegas</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63096053...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>Remember you are on journey now. Catch every m...</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@2fb7bac1108b24b7e8dd42b9df7996d6a4f8a87aef1f3...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>266245</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63158463...</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>there is no one like jesus</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@b19213858afcfbd4146aed97d09c4bc51db2a7339904c...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>102437</td>\n",
       "      <td>0</td>\n",
       "      <td>浦东新区</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62138474...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>我就是我</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@4651c471c77ceaf81282d310594f1a9ca02cb671f0b1c...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33784359</td>\n",
       "      <td>0</td>\n",
       "      <td>东城</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62169375...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>145</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@3e6ac8aecd281a132b1aca87f0f3366e17a3e60c76622...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4129</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63347374...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>圣人不死，大盗不止</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@7733ca32e4a04af6c8d2e1121ae3be67299be6c8ad0e0...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>102439</td>\n",
       "      <td>0</td>\n",
       "      <td>丰台</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63684202...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@7302c3d96be41b8c1b66f7d3b06bb18d</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233853</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63757413...</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>129</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@e88ff534819750213216b87faf3c68302677dcfbfc51c...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>102501</td>\n",
       "      <td>0</td>\n",
       "      <td>深圳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63095825...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>哈哈</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@ed698a78bc7dac17985f88c3a3b544f8</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33686463</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64028241...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@d14ada9eaf7e3d0d38e60e96d62d6963</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33657383</td>\n",
       "      <td>0</td>\n",
       "      <td>丰台</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64030171...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>一张一驰，气逾霄汉</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@31a5a7ab0fdcbbc2c2e677c19a689a385b3b41148a313...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>16876991</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63056729...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@f287ece12b27bf9cbc3b18a7869f069a</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>102437</td>\n",
       "      <td>0</td>\n",
       "      <td>房山</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64213742...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>尼玛明明邹市明赢</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@55c77df4061487446f40a2cfb3eb04864073ad15b5fb9...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>103333</td>\n",
       "      <td>0</td>\n",
       "      <td>荆州</td>\n",
       "      <td>8195</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62170941...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>不管岁月静好,还是乱世苟活,君子皆不苟安。</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@095d19f5419eca01f855a342e4345613d6846071200cf...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>1087</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64029939...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>应当发愿愿往生,客路西山任彼恋,自是不归归便得,故乡风月有谁争</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@bd0d94ad4b728f97c12be71652dea6555a03be9d18a94...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4669</td>\n",
       "      <td>0</td>\n",
       "      <td>深圳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63056993...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>上善若水</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@98115bdec7926f363e25ae9075ff72c171a54ae78e482...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>37849127</td>\n",
       "      <td>0</td>\n",
       "      <td>San Francisco</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64459884...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@100844018575595927bc4dd12812e7c1</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233509</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64459659...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>新号b20160116</td>\n",
       "      <td>145</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@3f166e0761c6d5191ebc257428d566216cffe7d01dcf6...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>236007</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64623147...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@39d9356159a2a36f002bc2c503135ca0a7db9f911782c...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>135201</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64624103...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@a4d0bb1494358f63c6bfb59efefba8f68e8ceaf31115e...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233957</td>\n",
       "      <td>0</td>\n",
       "      <td>石家庄</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64621449...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@8af0687c5db2ffc1043a5a67b4ecd21dae1c862ba583e...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>17010757</td>\n",
       "      <td>0</td>\n",
       "      <td>黄冈</td>\n",
       "      <td>65539</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62169291...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>流星划过，留下的是什么？</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@f1e40363c2b209d70315623c054fb6fb</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33653667</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=63347068...</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@5ad5aa71ea6abdff0fabd621acffef08</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>98343</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=65045006...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@b1b85bd2cab96f35d30264a7df9448fd</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147582527</td>\n",
       "      <td>0</td>\n",
       "      <td>杭州</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=64623920...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@68822b053191eb00324102d51d85d634</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>793</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33660007</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66173629...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>AI</td>\n",
       "      <td>145</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@de8051493b575cade46a078364fab960</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>794</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>104549</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959743...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>广结善缘  至诚感通</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@52c4a484b794773040045ab52c1bd52d50155c897792f...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>795</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2181368229</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959756...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>纵有疾风起，人生不言弃！がばれ！</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@f90419d4d74cd3085f8d071fe3f1165edbb049f681343...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>796</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147550399</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>8195</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66186875...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@df91c5e86e47a4d0d110cc05c1e69c73</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>797</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>101</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67944964...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>没事早点睡，有空多挣钱！</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@a7c0260919215d24f3d8e111381732e89b637f0e953fe...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>798</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233573</td>\n",
       "      <td>0</td>\n",
       "      <td>昌平</td>\n",
       "      <td>8195</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67826432...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>求送豆豆</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@04a5bb90afeb982db2c67c7978c9c0fdd41fce6335d16...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>799</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>104741</td>\n",
       "      <td>0</td>\n",
       "      <td>西城</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959780...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>People is his situation.</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@26debd3196374a325d952acfc68ffb11cf4c544979c99...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>800</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4903</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959780...</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@685f5752b31c4299ca8930ea7217f7bb2487b0be84a98...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>801</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147717055</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66178712...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>\"to strive, to seek, to find, and never, ever ...</td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@01a2ddc869faa7f5fc7ede98fadf7a23fa44ea2191953...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>802</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147715261</td>\n",
       "      <td>0</td>\n",
       "      <td>东城</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953789...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>独立.自由.&lt;span class=\"emoji emoji2764\"&gt;&lt;/span&gt;️.信...</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@50bfdac46e69770a499c052eecff339532e1674856156...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>803</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4423719</td>\n",
       "      <td>0</td>\n",
       "      <td>沈阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959789...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@f2161fe88ed3fb620afd575a840f9bcf</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>804</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4298301</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959790...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@0bdba25245b9add925dbf370fde9fc4c</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>805</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>102503</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66183692...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@ac287c665a562cae9daa80241df5e4ee0a836cac7c063...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>806</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233509</td>\n",
       "      <td>0</td>\n",
       "      <td>武汉</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959812...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@a13f102b113d37dc75ae33d8c1a56c2956aa42c3a7571...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>807</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>68071</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959821...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>Beauty that comes with age</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@0f29e881a0ab0d3eb220776dd09a58fe023c3b4ce7f19...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>808</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33790527</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>8195</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959831...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>学IT，就先学《周哥教IT》，腾讯课堂一站式。少说少吃多做多思考</td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@e22ab2b53da2b2e3b59b7dbb9a69609a</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>809</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4198405</td>\n",
       "      <td>0</td>\n",
       "      <td>Minneapolis City</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67949951...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>内在</td>\n",
       "      <td>145</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@726f95557cd9297fa77ffffba3926be2c966cebaff562...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>810</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>233509</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67955996...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>黄色大门🚪里有我未坐的火箭&lt;span class=\"emoji emoji1f680\"&gt;&lt;/...</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@da9b680fb182594779e0c340bfdf71e9f356814fa8558...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>811</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>110821</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67831274...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>小时候，喜欢一个人，连作业本放一块，都觉得幸福</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@b996848382786494791c48e37d83c4525f6cdeda7886c...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>812</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4428607</td>\n",
       "      <td>0</td>\n",
       "      <td>Kuala Lumpur</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959875...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>Only oneself can decide who you are. 생활이 점점 좋아진다</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@4986dfa8043993e7b1948a956740ebbc</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>813</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>229991</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959903...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>要努力。</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@da3ae4e420d7ba0716f80788e4f459db</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>814</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>98599</td>\n",
       "      <td>0</td>\n",
       "      <td>海淀</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953141...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>了凡四训</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@b9bae3de26ce7f342b593b6404022c5c</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>815</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147715877</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67954759...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>有一家皮草店(雅宝城319)一页轻舟，双桨惊鸿，水天清</td>\n",
       "      <td>129</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@76555bf8221b97de8ee9df3354564bb8de7ac0b6974c4...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>816</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>100389</td>\n",
       "      <td>0</td>\n",
       "      <td>东城</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=66136676...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td>49</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@be83076f875d8fd247ac61dd1c5616dcf8a338d327ee5...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>817</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>4427069</td>\n",
       "      <td>0</td>\n",
       "      <td>东城</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67945404...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>江湖人称薛先生&lt;span class=\"emoji emoji1f40e\"&gt;&lt;/span&gt;</td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@c2a404be347c2a833d8bd5a770531d2a</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>818</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147593701</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67668165...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>事不拖，话不多，人不作！</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@958d95da12354788b2df93c8b9958ced</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>819</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>33652837</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959336...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>入巷间.吃汤面</td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@b29b4b0707e72ba9a86e94f7b6cf53aa</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>820</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>285</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67942737...</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td>129</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@18da6e52de347111324ab68bb53211ac8b5aa17f0319f...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>821</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>104551</td>\n",
       "      <td>0</td>\n",
       "      <td>丰台</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67956619...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>If the road to dream is long,\\njust enjoy the ...</td>\n",
       "      <td>17</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@6cfde7ca50a8c590d556f5b1c7f6d27adc8e158cb8872...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>822</th>\n",
       "      <td></td>\n",
       "      <td>0</td>\n",
       "      <td>2147593469</td>\n",
       "      <td>0</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>3</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>/cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959973...</td>\n",
       "      <td>...</td>\n",
       "      <td>2</td>\n",
       "      <td>爱是不死力量是疲惫生活中的英雄梦想</td>\n",
       "      <td>177</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>@e772070e0c9c04291db5401ce06f7a88c38700ce57b49...</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>823 rows × 33 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "    Alias  AppAccountFlag  AttrStatus  ChatRoomId              City  \\\n",
       "0                       0    33656871           0                海淀   \n",
       "1                       0      101821           0                太原   \n",
       "2                       0      104485           0                徐汇   \n",
       "3                       0          39           0                海淀   \n",
       "4                       0         185           0                海淀   \n",
       "5                       0       13409           0                贵港   \n",
       "6                       0   100700197           0         Las Vegas   \n",
       "7                       0      266245           0                     \n",
       "8                       0      102437           0              浦东新区   \n",
       "9                       0    33784359           0                东城   \n",
       "10                      0        4129           0                     \n",
       "11                      0      102439           0                丰台   \n",
       "12                      0      233853           0                     \n",
       "13                      0      102501           0                深圳   \n",
       "14                      0    33686463           0                海淀   \n",
       "15                      0    33657383           0                丰台   \n",
       "16                      0    16876991           0                海淀   \n",
       "17                      0      102437           0                房山   \n",
       "18                      0      103333           0                荆州   \n",
       "19                      0        1087           0                     \n",
       "20                      0        4669           0                深圳   \n",
       "21                      0    37849127           0     San Francisco   \n",
       "22                      0      233509           0                海淀   \n",
       "23                      0      236007           0                海淀   \n",
       "24                      0      135201           0                     \n",
       "25                      0      233957           0               石家庄   \n",
       "26                      0    17010757           0                黄冈   \n",
       "27                      0    33653667           0                     \n",
       "28                      0       98343           0                朝阳   \n",
       "29                      0  2147582527           0                杭州   \n",
       "..    ...             ...         ...         ...               ...   \n",
       "793                     0    33660007           0                     \n",
       "794                     0      104549           0                朝阳   \n",
       "795                     0  2181368229           0                     \n",
       "796                     0  2147550399           0                海淀   \n",
       "797                     0         101           0                     \n",
       "798                     0      233573           0                昌平   \n",
       "799                     0      104741           0                西城   \n",
       "800                     0        4903           0                     \n",
       "801                     0  2147717055           0                朝阳   \n",
       "802                     0  2147715261           0                东城   \n",
       "803                     0     4423719           0                沈阳   \n",
       "804                     0     4298301           0                     \n",
       "805                     0      102503           0                朝阳   \n",
       "806                     0      233509           0                武汉   \n",
       "807                     0       68071           0                海淀   \n",
       "808                     0    33790527           0                     \n",
       "809                     0     4198405           0  Minneapolis City   \n",
       "810                     0      233509           0                海淀   \n",
       "811                     0      110821           0                     \n",
       "812                     0     4428607           0      Kuala Lumpur   \n",
       "813                     0      229991           0                     \n",
       "814                     0       98599           0                海淀   \n",
       "815                     0  2147715877           0                朝阳   \n",
       "816                     0      100389           0                东城   \n",
       "817                     0     4427069           0                东城   \n",
       "818                     0  2147593701           0                朝阳   \n",
       "819                     0    33652837           0                     \n",
       "820                     0         285           0                     \n",
       "821                     0      104551           0                丰台   \n",
       "822                     0  2147593469           0                朝阳   \n",
       "\n",
       "     ContactFlag DisplayName EncryChatRoomId  HeadImgFlag  \\\n",
       "0              3                                      1.0   \n",
       "1              3                                      NaN   \n",
       "2           8195                                      NaN   \n",
       "3              3                                      NaN   \n",
       "4              3                                      NaN   \n",
       "5              3                                      NaN   \n",
       "6              3                                      NaN   \n",
       "7              3                                      NaN   \n",
       "8              3                                      NaN   \n",
       "9              3                                      NaN   \n",
       "10             1                                      NaN   \n",
       "11             3                                      NaN   \n",
       "12             3                                      NaN   \n",
       "13             3                                      NaN   \n",
       "14             3                                      NaN   \n",
       "15             3                                      NaN   \n",
       "16             3                                      NaN   \n",
       "17             3                                      NaN   \n",
       "18          8195                                      NaN   \n",
       "19             3                                      NaN   \n",
       "20             3                                      NaN   \n",
       "21             3                                      NaN   \n",
       "22             3                                      NaN   \n",
       "23             3                                      NaN   \n",
       "24             3                                      NaN   \n",
       "25             3                                      NaN   \n",
       "26         65539                                      NaN   \n",
       "27             3                                      NaN   \n",
       "28             3                                      NaN   \n",
       "29             3                                      NaN   \n",
       "..           ...         ...             ...          ...   \n",
       "793            3                                      NaN   \n",
       "794            3                                      NaN   \n",
       "795            3                                      NaN   \n",
       "796         8195                                      NaN   \n",
       "797            3                                      NaN   \n",
       "798         8195                                      NaN   \n",
       "799            3                                      NaN   \n",
       "800            3                                      NaN   \n",
       "801            3                                      NaN   \n",
       "802            3                                      NaN   \n",
       "803            3                                      NaN   \n",
       "804            3                                      NaN   \n",
       "805            3                                      NaN   \n",
       "806            3                                      NaN   \n",
       "807            3                                      NaN   \n",
       "808         8195                                      NaN   \n",
       "809            3                                      NaN   \n",
       "810            3                                      NaN   \n",
       "811            3                                      NaN   \n",
       "812            3                                      NaN   \n",
       "813            3                                      NaN   \n",
       "814            3                                      NaN   \n",
       "815            3                                      NaN   \n",
       "816            3                                      NaN   \n",
       "817            3                                      NaN   \n",
       "818            3                                      NaN   \n",
       "819            3                                      NaN   \n",
       "820            3                                      NaN   \n",
       "821            3                                      NaN   \n",
       "822            3                                      NaN   \n",
       "\n",
       "                                            HeadImgUrl        ...         Sex  \\\n",
       "0    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66182623...        ...           1   \n",
       "1    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953222...        ...           2   \n",
       "2    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66145056...        ...           2   \n",
       "3    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=740247&u...        ...           1   \n",
       "4    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62093004...        ...           1   \n",
       "5    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62063175...        ...           1   \n",
       "6    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63096053...        ...           2   \n",
       "7    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63158463...        ...           0   \n",
       "8    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62138474...        ...           1   \n",
       "9    /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62169375...        ...           1   \n",
       "10   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63347374...        ...           1   \n",
       "11   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63684202...        ...           1   \n",
       "12   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63757413...        ...           0   \n",
       "13   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63095825...        ...           2   \n",
       "14   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64028241...        ...           1   \n",
       "15   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64030171...        ...           1   \n",
       "16   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63056729...        ...           1   \n",
       "17   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64213742...        ...           1   \n",
       "18   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62170941...        ...           1   \n",
       "19   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64029939...        ...           1   \n",
       "20   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63056993...        ...           1   \n",
       "21   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64459884...        ...           1   \n",
       "22   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64459659...        ...           2   \n",
       "23   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64623147...        ...           2   \n",
       "24   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64624103...        ...           2   \n",
       "25   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64621449...        ...           2   \n",
       "26   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=62169291...        ...           2   \n",
       "27   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=63347068...        ...           0   \n",
       "28   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=65045006...        ...           2   \n",
       "29   /cgi-bin/mmwebwx-bin/webwxgeticon?seq=64623920...        ...           2   \n",
       "..                                                 ...        ...         ...   \n",
       "793  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66173629...        ...           1   \n",
       "794  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959743...        ...           1   \n",
       "795  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959756...        ...           2   \n",
       "796  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66186875...        ...           2   \n",
       "797  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67944964...        ...           2   \n",
       "798  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67826432...        ...           2   \n",
       "799  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959780...        ...           2   \n",
       "800  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959780...        ...           0   \n",
       "801  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66178712...        ...           2   \n",
       "802  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953789...        ...           2   \n",
       "803  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959789...        ...           1   \n",
       "804  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959790...        ...           2   \n",
       "805  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66183692...        ...           2   \n",
       "806  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959812...        ...           1   \n",
       "807  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959821...        ...           2   \n",
       "808  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959831...        ...           1   \n",
       "809  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67949951...        ...           1   \n",
       "810  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67955996...        ...           2   \n",
       "811  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67831274...        ...           1   \n",
       "812  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959875...        ...           2   \n",
       "813  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959903...        ...           1   \n",
       "814  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67953141...        ...           1   \n",
       "815  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67954759...        ...           2   \n",
       "816  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=66136676...        ...           2   \n",
       "817  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67945404...        ...           2   \n",
       "818  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67668165...        ...           2   \n",
       "819  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959336...        ...           2   \n",
       "820  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67942737...        ...           1   \n",
       "821  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67956619...        ...           2   \n",
       "822  /cgi-bin/mmwebwx-bin/webwxgeticon?seq=67959973...        ...           2   \n",
       "\n",
       "                                             Signature SnsFlag  StarFriend  \\\n",
       "0                                                自律更自由      17           0   \n",
       "1                                                           49           0   \n",
       "2                                                           49           0   \n",
       "3                                             经风雨，见彩虹。      16           0   \n",
       "4                                           厚德载物，自强不息。      16           0   \n",
       "5                                                           17           0   \n",
       "6    Remember you are on journey now. Catch every m...      17           0   \n",
       "7                           there is no one like jesus       0           0   \n",
       "8                                                 我就是我      17           0   \n",
       "9                                                          145           0   \n",
       "10                                           圣人不死，大盗不止       1           0   \n",
       "11                                                          17           0   \n",
       "12                                                         129           0   \n",
       "13                                                  哈哈       1           0   \n",
       "14                                                          17           0   \n",
       "15                                           一张一驰，气逾霄汉      17           0   \n",
       "16                                                          17           0   \n",
       "17                                            尼玛明明邹市明赢      49           0   \n",
       "18                               不管岁月静好,还是乱世苟活,君子皆不苟安。      17           0   \n",
       "19                     应当发愿愿往生,客路西山任彼恋,自是不归归便得,故乡风月有谁争      17           0   \n",
       "20                                                上善若水      17           0   \n",
       "21                                                          49           0   \n",
       "22                                         新号b20160116     145           0   \n",
       "23                                                          17           0   \n",
       "24                                                           1           0   \n",
       "25                                                          17           0   \n",
       "26                                        流星划过，留下的是什么？      49           0   \n",
       "27                                                          49           0   \n",
       "28                                                          49           0   \n",
       "29                                                         177           0   \n",
       "..                                                 ...     ...         ...   \n",
       "793                                                 AI     145           0   \n",
       "794                                         广结善缘  至诚感通      17           0   \n",
       "795                                   纵有疾风起，人生不言弃！がばれ！      49           0   \n",
       "796                                                         17           0   \n",
       "797                                       没事早点睡，有空多挣钱！      17           0   \n",
       "798                                               求送豆豆      17           0   \n",
       "799                           People is his situation.       1           0   \n",
       "800                                                          1           0   \n",
       "801  \"to strive, to seek, to find, and never, ever ...     177           0   \n",
       "802  独立.自由.<span class=\"emoji emoji2764\"></span>️.信...      49           0   \n",
       "803                                                        177           0   \n",
       "804                                                         49           0   \n",
       "805                                                          1           0   \n",
       "806                                                          1           0   \n",
       "807                         Beauty that comes with age      49           0   \n",
       "808                   学IT，就先学《周哥教IT》，腾讯课堂一站式。少说少吃多做多思考      49           0   \n",
       "809                                                 内在     145           0   \n",
       "810  黄色大门🚪里有我未坐的火箭<span class=\"emoji emoji1f680\"></...      17           0   \n",
       "811                            小时候，喜欢一个人，连作业本放一块，都觉得幸福      17           0   \n",
       "812   Only oneself can decide who you are. 생활이 점점 좋아진다      17           0   \n",
       "813                                               要努力。      17           0   \n",
       "814                                               了凡四训      17           0   \n",
       "815                        有一家皮草店(雅宝城319)一页轻舟，双桨惊鸿，水天清     129           0   \n",
       "816                                                         49           0   \n",
       "817      江湖人称薛先生<span class=\"emoji emoji1f40e\"></span>     177           0   \n",
       "818                                       事不拖，话不多，人不作！      17           0   \n",
       "819                                            入巷间.吃汤面     177           0   \n",
       "820                                                        129           0   \n",
       "821  If the road to dream is long,\\njust enjoy the ...      17           0   \n",
       "822                                  爱是不死力量是疲惫生活中的英雄梦想     177           0   \n",
       "\n",
       "    Statues        Uin  UniFriend  \\\n",
       "0         0  965715160          0   \n",
       "1         0          0          0   \n",
       "2         0          0          0   \n",
       "3         0          0          0   \n",
       "4         0          0          0   \n",
       "5         0          0          0   \n",
       "6         0          0          0   \n",
       "7         0          0          0   \n",
       "8         0          0          0   \n",
       "9         0          0          0   \n",
       "10        0          0          0   \n",
       "11        0          0          0   \n",
       "12        0          0          0   \n",
       "13        0          0          0   \n",
       "14        0          0          0   \n",
       "15        0          0          0   \n",
       "16        0          0          0   \n",
       "17        0          0          0   \n",
       "18        0          0          0   \n",
       "19        0          0          0   \n",
       "20        0          0          0   \n",
       "21        0          0          0   \n",
       "22        0          0          0   \n",
       "23        0          0          0   \n",
       "24        0          0          0   \n",
       "25        0          0          0   \n",
       "26        0          0          0   \n",
       "27        0          0          0   \n",
       "28        0          0          0   \n",
       "29        0          0          0   \n",
       "..      ...        ...        ...   \n",
       "793       0          0          0   \n",
       "794       0          0          0   \n",
       "795       0          0          0   \n",
       "796       0          0          0   \n",
       "797       0          0          0   \n",
       "798       0          0          0   \n",
       "799       0          0          0   \n",
       "800       0          0          0   \n",
       "801       0          0          0   \n",
       "802       0          0          0   \n",
       "803       0          0          0   \n",
       "804       0          0          0   \n",
       "805       0          0          0   \n",
       "806       0          0          0   \n",
       "807       0          0          0   \n",
       "808       0          0          0   \n",
       "809       0          0          0   \n",
       "810       0          0          0   \n",
       "811       0          0          0   \n",
       "812       0          0          0   \n",
       "813       0          0          0   \n",
       "814       0          0          0   \n",
       "815       0          0          0   \n",
       "816       0          0          0   \n",
       "817       0          0          0   \n",
       "818       0          0          0   \n",
       "819       0          0          0   \n",
       "820       0          0          0   \n",
       "821       0          0          0   \n",
       "822       0          0          0   \n",
       "\n",
       "                                              UserName VerifyFlag  \\\n",
       "0                    @0ae74760e7bf11dda4fc9ba57e6e4e40          0   \n",
       "1    @9da75f3777a92a2c52b5f6864a49b61607791472dccc0...          0   \n",
       "2    @9318937ca4e45fb1d6ab87899d308df34099820903df1...          0   \n",
       "3    @1990ff7795f44705bbd36a1eefab7c8907f9a9c573377...          0   \n",
       "4    @34cb4139b755be6cbba63f15b5e46a7f2b8ee94c7dd14...          0   \n",
       "5    @a9f68b9a37f8ab6624c48558aff91dc303e0ee5d36651...          0   \n",
       "6    @2fb7bac1108b24b7e8dd42b9df7996d6a4f8a87aef1f3...          0   \n",
       "7    @b19213858afcfbd4146aed97d09c4bc51db2a7339904c...          0   \n",
       "8    @4651c471c77ceaf81282d310594f1a9ca02cb671f0b1c...          0   \n",
       "9    @3e6ac8aecd281a132b1aca87f0f3366e17a3e60c76622...          0   \n",
       "10   @7733ca32e4a04af6c8d2e1121ae3be67299be6c8ad0e0...          0   \n",
       "11                   @7302c3d96be41b8c1b66f7d3b06bb18d          0   \n",
       "12   @e88ff534819750213216b87faf3c68302677dcfbfc51c...          0   \n",
       "13                   @ed698a78bc7dac17985f88c3a3b544f8          0   \n",
       "14                   @d14ada9eaf7e3d0d38e60e96d62d6963          0   \n",
       "15   @31a5a7ab0fdcbbc2c2e677c19a689a385b3b41148a313...          0   \n",
       "16                   @f287ece12b27bf9cbc3b18a7869f069a          0   \n",
       "17   @55c77df4061487446f40a2cfb3eb04864073ad15b5fb9...          0   \n",
       "18   @095d19f5419eca01f855a342e4345613d6846071200cf...          0   \n",
       "19   @bd0d94ad4b728f97c12be71652dea6555a03be9d18a94...          0   \n",
       "20   @98115bdec7926f363e25ae9075ff72c171a54ae78e482...          0   \n",
       "21                   @100844018575595927bc4dd12812e7c1          0   \n",
       "22   @3f166e0761c6d5191ebc257428d566216cffe7d01dcf6...          0   \n",
       "23   @39d9356159a2a36f002bc2c503135ca0a7db9f911782c...          0   \n",
       "24   @a4d0bb1494358f63c6bfb59efefba8f68e8ceaf31115e...          0   \n",
       "25   @8af0687c5db2ffc1043a5a67b4ecd21dae1c862ba583e...          0   \n",
       "26                   @f1e40363c2b209d70315623c054fb6fb          0   \n",
       "27                   @5ad5aa71ea6abdff0fabd621acffef08          0   \n",
       "28                   @b1b85bd2cab96f35d30264a7df9448fd          0   \n",
       "29                   @68822b053191eb00324102d51d85d634          0   \n",
       "..                                                 ...        ...   \n",
       "793                  @de8051493b575cade46a078364fab960          0   \n",
       "794  @52c4a484b794773040045ab52c1bd52d50155c897792f...          0   \n",
       "795  @f90419d4d74cd3085f8d071fe3f1165edbb049f681343...          0   \n",
       "796                  @df91c5e86e47a4d0d110cc05c1e69c73          0   \n",
       "797  @a7c0260919215d24f3d8e111381732e89b637f0e953fe...          0   \n",
       "798  @04a5bb90afeb982db2c67c7978c9c0fdd41fce6335d16...          0   \n",
       "799  @26debd3196374a325d952acfc68ffb11cf4c544979c99...          0   \n",
       "800  @685f5752b31c4299ca8930ea7217f7bb2487b0be84a98...          0   \n",
       "801  @01a2ddc869faa7f5fc7ede98fadf7a23fa44ea2191953...          0   \n",
       "802  @50bfdac46e69770a499c052eecff339532e1674856156...          0   \n",
       "803                  @f2161fe88ed3fb620afd575a840f9bcf          0   \n",
       "804                  @0bdba25245b9add925dbf370fde9fc4c          0   \n",
       "805  @ac287c665a562cae9daa80241df5e4ee0a836cac7c063...          0   \n",
       "806  @a13f102b113d37dc75ae33d8c1a56c2956aa42c3a7571...          0   \n",
       "807  @0f29e881a0ab0d3eb220776dd09a58fe023c3b4ce7f19...          0   \n",
       "808                  @e22ab2b53da2b2e3b59b7dbb9a69609a          0   \n",
       "809  @726f95557cd9297fa77ffffba3926be2c966cebaff562...          0   \n",
       "810  @da9b680fb182594779e0c340bfdf71e9f356814fa8558...          0   \n",
       "811  @b996848382786494791c48e37d83c4525f6cdeda7886c...          0   \n",
       "812                  @4986dfa8043993e7b1948a956740ebbc          0   \n",
       "813                  @da3ae4e420d7ba0716f80788e4f459db          0   \n",
       "814                  @b9bae3de26ce7f342b593b6404022c5c          0   \n",
       "815  @76555bf8221b97de8ee9df3354564bb8de7ac0b6974c4...          0   \n",
       "816  @be83076f875d8fd247ac61dd1c5616dcf8a338d327ee5...          0   \n",
       "817                  @c2a404be347c2a833d8bd5a770531d2a          0   \n",
       "818                  @958d95da12354788b2df93c8b9958ced          0   \n",
       "819                  @b29b4b0707e72ba9a86e94f7b6cf53aa          0   \n",
       "820  @18da6e52de347111324ab68bb53211ac8b5aa17f0319f...          0   \n",
       "821  @6cfde7ca50a8c590d556f5b1c7f6d27adc8e158cb8872...          0   \n",
       "822  @e772070e0c9c04291db5401ce06f7a88c38700ce57b49...          0   \n",
       "\n",
       "    WebWxPluginSwitch  \n",
       "0                 0.0  \n",
       "1                 NaN  \n",
       "2                 NaN  \n",
       "3                 NaN  \n",
       "4                 NaN  \n",
       "5                 NaN  \n",
       "6                 NaN  \n",
       "7                 NaN  \n",
       "8                 NaN  \n",
       "9                 NaN  \n",
       "10                NaN  \n",
       "11                NaN  \n",
       "12                NaN  \n",
       "13                NaN  \n",
       "14                NaN  \n",
       "15                NaN  \n",
       "16                NaN  \n",
       "17                NaN  \n",
       "18                NaN  \n",
       "19                NaN  \n",
       "20                NaN  \n",
       "21                NaN  \n",
       "22                NaN  \n",
       "23                NaN  \n",
       "24                NaN  \n",
       "25                NaN  \n",
       "26                NaN  \n",
       "27                NaN  \n",
       "28                NaN  \n",
       "29                NaN  \n",
       "..                ...  \n",
       "793               NaN  \n",
       "794               NaN  \n",
       "795               NaN  \n",
       "796               NaN  \n",
       "797               NaN  \n",
       "798               NaN  \n",
       "799               NaN  \n",
       "800               NaN  \n",
       "801               NaN  \n",
       "802               NaN  \n",
       "803               NaN  \n",
       "804               NaN  \n",
       "805               NaN  \n",
       "806               NaN  \n",
       "807               NaN  \n",
       "808               NaN  \n",
       "809               NaN  \n",
       "810               NaN  \n",
       "811               NaN  \n",
       "812               NaN  \n",
       "813               NaN  \n",
       "814               NaN  \n",
       "815               NaN  \n",
       "816               NaN  \n",
       "817               NaN  \n",
       "818               NaN  \n",
       "819               NaN  \n",
       "820               NaN  \n",
       "821               NaN  \n",
       "822               NaN  \n",
       "\n",
       "[823 rows x 33 columns]"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "df = pd.DataFrame(friends)\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Index(['Alias', 'AppAccountFlag', 'AttrStatus', 'ChatRoomId', 'City',\n",
       "       'ContactFlag', 'DisplayName', 'EncryChatRoomId', 'HeadImgFlag',\n",
       "       'HeadImgUrl', 'HideInputBarFlag', 'IsOwner', 'KeyWord', 'MemberCount',\n",
       "       'MemberList', 'NickName', 'OwnerUin', 'PYInitial', 'PYQuanPin',\n",
       "       'Province', 'RemarkName', 'RemarkPYInitial', 'RemarkPYQuanPin', 'Sex',\n",
       "       'Signature', 'SnsFlag', 'StarFriend', 'Statues', 'Uin', 'UniFriend',\n",
       "       'UserName', 'VerifyFlag', 'WebWxPluginSwitch'],\n",
       "      dtype='object')"
      ]
     },
     "execution_count": 60,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df.columns"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>PYQuanPin</th>\n",
       "      <th>Sex</th>\n",
       "      <th>Province</th>\n",
       "      <th>City</th>\n",
       "      <th>Signature</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>wangqiwen</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>自律更自由</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Yummyspanclassemojiemoji1f467span?</td>\n",
       "      <td>2</td>\n",
       "      <td>山西</td>\n",
       "      <td>太原</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>Sulinazhouspanclassemojiemoji1f380span</td>\n",
       "      <td>2</td>\n",
       "      <td>上海</td>\n",
       "      <td>徐汇</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>weijiangbo</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>经风雨，见彩虹。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>guoweiv</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>厚德载物，自强不息。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>zhangxinsheng</td>\n",
       "      <td>1</td>\n",
       "      <td>广西</td>\n",
       "      <td>贵港</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>fang</td>\n",
       "      <td>2</td>\n",
       "      <td>Nevada</td>\n",
       "      <td>Las Vegas</td>\n",
       "      <td>Remember you are on journey now. Catch every m...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>arsania</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>there is no one like jesus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>xiong</td>\n",
       "      <td>1</td>\n",
       "      <td>上海</td>\n",
       "      <td>浦东新区</td>\n",
       "      <td>我就是我</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>luyan</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>东城</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>hewenshu</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>圣人不死，大盗不止</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>gan</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>丰台</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>qunzhu</td>\n",
       "      <td>0</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>qingfeng</td>\n",
       "      <td>2</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳</td>\n",
       "      <td>哈哈</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>hanhan</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>zhangyu</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>丰台</td>\n",
       "      <td>一张一驰，气逾霄汉</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>zhanglun</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>zouwei</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>房山</td>\n",
       "      <td>尼玛明明邹市明赢</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>bell</td>\n",
       "      <td>1</td>\n",
       "      <td>湖北</td>\n",
       "      <td>荆州</td>\n",
       "      <td>不管岁月静好,还是乱世苟活,君子皆不苟安。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>kindxianzhiquietjimoweixiao</td>\n",
       "      <td>1</td>\n",
       "      <td>Vienna</td>\n",
       "      <td></td>\n",
       "      <td>应当发愿愿往生,客路西山任彼恋,自是不归归便得,故乡风月有谁争</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>zhangyuan</td>\n",
       "      <td>1</td>\n",
       "      <td>广东</td>\n",
       "      <td>深圳</td>\n",
       "      <td>上善若水</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>yaoxu</td>\n",
       "      <td>1</td>\n",
       "      <td>California</td>\n",
       "      <td>San Francisco</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>qingjiaxinhaozixunbailaohuixiaobishu</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>新号b20160116</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>ksin</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>zhoulijun</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>tanger</td>\n",
       "      <td>2</td>\n",
       "      <td>河北</td>\n",
       "      <td>石家庄</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>VickyYe</td>\n",
       "      <td>2</td>\n",
       "      <td>湖北</td>\n",
       "      <td>黄冈</td>\n",
       "      <td>流星划过，留下的是什么？</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>yongbin</td>\n",
       "      <td>0</td>\n",
       "      <td>北京</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>yanzi</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>chenfengbailaohui</td>\n",
       "      <td>2</td>\n",
       "      <td>浙江</td>\n",
       "      <td>杭州</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>793</th>\n",
       "      <td>JohnsonJshu</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>AI</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>794</th>\n",
       "      <td>xiejingegaizeguojitaoci</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>广结善缘  至诚感通</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>795</th>\n",
       "      <td>Amy</td>\n",
       "      <td>2</td>\n",
       "      <td>Sha Tin</td>\n",
       "      <td></td>\n",
       "      <td>纵有疾风起，人生不言弃！がばれ！</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>796</th>\n",
       "      <td>Sophie</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>797</th>\n",
       "      <td>jun</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>没事早点睡，有空多挣钱！</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>798</th>\n",
       "      <td>xinxinbai</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>昌平</td>\n",
       "      <td>求送豆豆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>799</th>\n",
       "      <td>anyan</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>西城</td>\n",
       "      <td>People is his situation.</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>800</th>\n",
       "      <td>spanclassemojiemoji1f420spanspanclassemojiemoj...</td>\n",
       "      <td>0</td>\n",
       "      <td>北京</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>801</th>\n",
       "      <td>ginger</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>\"to strive, to seek, to find, and never, ever ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>802</th>\n",
       "      <td>chengjiao</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>东城</td>\n",
       "      <td>独立.自由.&lt;span class=\"emoji emoji2764\"&gt;&lt;/span&gt;️.信...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>803</th>\n",
       "      <td>moyang</td>\n",
       "      <td>1</td>\n",
       "      <td>辽宁</td>\n",
       "      <td>沈阳</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>804</th>\n",
       "      <td>chaixiaoyuan</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>805</th>\n",
       "      <td>lilixia</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>806</th>\n",
       "      <td>xuwenwuLecky</td>\n",
       "      <td>1</td>\n",
       "      <td>湖北</td>\n",
       "      <td>武汉</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>807</th>\n",
       "      <td>yanyan</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>Beauty that comes with age</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>808</th>\n",
       "      <td>buqiang</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td></td>\n",
       "      <td>学IT，就先学《周哥教IT》，腾讯课堂一站式。少说少吃多做多思考</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>809</th>\n",
       "      <td>yuhaomingnisuda</td>\n",
       "      <td>1</td>\n",
       "      <td>Minnesota</td>\n",
       "      <td>Minneapolis City</td>\n",
       "      <td>内在</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>810</th>\n",
       "      <td>yadi</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>黄色大门🚪里有我未坐的火箭&lt;span class=\"emoji emoji1f680\"&gt;&lt;/...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>811</th>\n",
       "      <td>yaobiyedehonglingjin</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>小时候，喜欢一个人，连作业本放一块，都觉得幸福</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>812</th>\n",
       "      <td>Brendabulanda</td>\n",
       "      <td>2</td>\n",
       "      <td>Kuala Lumpur</td>\n",
       "      <td>Kuala Lumpur</td>\n",
       "      <td>Only oneself can decide who you are. 생활이 점점 좋아진다</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>813</th>\n",
       "      <td>Adrian</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>要努力。</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>814</th>\n",
       "      <td>wangzai</td>\n",
       "      <td>1</td>\n",
       "      <td>北京</td>\n",
       "      <td>海淀</td>\n",
       "      <td>了凡四训</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>815</th>\n",
       "      <td>zhenghongyan</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>有一家皮草店(雅宝城319)一页轻舟，双桨惊鸿，水天清</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>816</th>\n",
       "      <td>miaozhisheng</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>东城</td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>817</th>\n",
       "      <td>xueyafeiYafei</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>东城</td>\n",
       "      <td>江湖人称薛先生&lt;span class=\"emoji emoji1f40e\"&gt;&lt;/span&gt;</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>818</th>\n",
       "      <td>meiling</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>事不拖，话不多，人不作！</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>819</th>\n",
       "      <td>HUI</td>\n",
       "      <td>2</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td>入巷间.吃汤面</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>820</th>\n",
       "      <td>renyinghao</td>\n",
       "      <td>1</td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "      <td></td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>821</th>\n",
       "      <td>zhouxiwa</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>丰台</td>\n",
       "      <td>If the road to dream is long,\\njust enjoy the ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>822</th>\n",
       "      <td>xiaoyuspanclassemojiemoji1f4a4span</td>\n",
       "      <td>2</td>\n",
       "      <td>北京</td>\n",
       "      <td>朝阳</td>\n",
       "      <td>爱是不死力量是疲惫生活中的英雄梦想</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>823 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                             PYQuanPin  Sex      Province  \\\n",
       "0                                            wangqiwen    1            北京   \n",
       "1                   Yummyspanclassemojiemoji1f467span?    2            山西   \n",
       "2               Sulinazhouspanclassemojiemoji1f380span    2            上海   \n",
       "3                                           weijiangbo    1            北京   \n",
       "4                                              guoweiv    1            北京   \n",
       "5                                        zhangxinsheng    1            广西   \n",
       "6                                                 fang    2        Nevada   \n",
       "7                                              arsania    0                 \n",
       "8                                                xiong    1            上海   \n",
       "9                                                luyan    1            北京   \n",
       "10                                            hewenshu    1                 \n",
       "11                                                 gan    1            北京   \n",
       "12                                              qunzhu    0                 \n",
       "13                                            qingfeng    2            广东   \n",
       "14                                              hanhan    1            北京   \n",
       "15                                             zhangyu    1            北京   \n",
       "16                                            zhanglun    1            北京   \n",
       "17                                              zouwei    1            北京   \n",
       "18                                                bell    1            湖北   \n",
       "19                         kindxianzhiquietjimoweixiao    1        Vienna   \n",
       "20                                           zhangyuan    1            广东   \n",
       "21                                               yaoxu    1    California   \n",
       "22                qingjiaxinhaozixunbailaohuixiaobishu    2            北京   \n",
       "23                                                ksin    2            北京   \n",
       "24                                           zhoulijun    2                 \n",
       "25                                              tanger    2            河北   \n",
       "26                                             VickyYe    2            湖北   \n",
       "27                                             yongbin    0            北京   \n",
       "28                                               yanzi    2            北京   \n",
       "29                                   chenfengbailaohui    2            浙江   \n",
       "..                                                 ...  ...           ...   \n",
       "793                                        JohnsonJshu    1                 \n",
       "794                            xiejingegaizeguojitaoci    1            北京   \n",
       "795                                                Amy    2       Sha Tin   \n",
       "796                                             Sophie    2            北京   \n",
       "797                                                jun    2                 \n",
       "798                                          xinxinbai    2            北京   \n",
       "799                                              anyan    2            北京   \n",
       "800  spanclassemojiemoji1f420spanspanclassemojiemoj...    0            北京   \n",
       "801                                             ginger    2            北京   \n",
       "802                                          chengjiao    2            北京   \n",
       "803                                             moyang    1            辽宁   \n",
       "804                                       chaixiaoyuan    2            北京   \n",
       "805                                            lilixia    2            北京   \n",
       "806                                       xuwenwuLecky    1            湖北   \n",
       "807                                             yanyan    2            北京   \n",
       "808                                            buqiang    1            北京   \n",
       "809                                    yuhaomingnisuda    1     Minnesota   \n",
       "810                                               yadi    2            北京   \n",
       "811                               yaobiyedehonglingjin    1                 \n",
       "812                                      Brendabulanda    2  Kuala Lumpur   \n",
       "813                                             Adrian    1                 \n",
       "814                                            wangzai    1            北京   \n",
       "815                                       zhenghongyan    2            北京   \n",
       "816                                       miaozhisheng    2            北京   \n",
       "817                                      xueyafeiYafei    2            北京   \n",
       "818                                            meiling    2            北京   \n",
       "819                                                HUI    2                 \n",
       "820                                         renyinghao    1                 \n",
       "821                                           zhouxiwa    2            北京   \n",
       "822                 xiaoyuspanclassemojiemoji1f4a4span    2            北京   \n",
       "\n",
       "                 City                                          Signature  \n",
       "0                  海淀                                              自律更自由  \n",
       "1                  太原                                                     \n",
       "2                  徐汇                                                     \n",
       "3                  海淀                                           经风雨，见彩虹。  \n",
       "4                  海淀                                         厚德载物，自强不息。  \n",
       "5                  贵港                                                     \n",
       "6           Las Vegas  Remember you are on journey now. Catch every m...  \n",
       "7                                             there is no one like jesus  \n",
       "8                浦东新区                                               我就是我  \n",
       "9                  东城                                                     \n",
       "10                                                             圣人不死，大盗不止  \n",
       "11                 丰台                                                     \n",
       "12                                                                        \n",
       "13                 深圳                                                 哈哈  \n",
       "14                 海淀                                                     \n",
       "15                 丰台                                          一张一驰，气逾霄汉  \n",
       "16                 海淀                                                     \n",
       "17                 房山                                           尼玛明明邹市明赢  \n",
       "18                 荆州                              不管岁月静好,还是乱世苟活,君子皆不苟安。  \n",
       "19                                       应当发愿愿往生,客路西山任彼恋,自是不归归便得,故乡风月有谁争  \n",
       "20                 深圳                                               上善若水  \n",
       "21      San Francisco                                                     \n",
       "22                 海淀                                        新号b20160116  \n",
       "23                 海淀                                                     \n",
       "24                                                                        \n",
       "25                石家庄                                                     \n",
       "26                 黄冈                                       流星划过，留下的是什么？  \n",
       "27                                                                        \n",
       "28                 朝阳                                                     \n",
       "29                 杭州                                                     \n",
       "..                ...                                                ...  \n",
       "793                                                                   AI  \n",
       "794                朝阳                                         广结善缘  至诚感通  \n",
       "795                                                     纵有疾风起，人生不言弃！がばれ！  \n",
       "796                海淀                                                     \n",
       "797                                                         没事早点睡，有空多挣钱！  \n",
       "798                昌平                                               求送豆豆  \n",
       "799                西城                           People is his situation.  \n",
       "800                                                                       \n",
       "801                朝阳  \"to strive, to seek, to find, and never, ever ...  \n",
       "802                东城  独立.自由.<span class=\"emoji emoji2764\"></span>️.信...  \n",
       "803                沈阳                                                     \n",
       "804                                                                       \n",
       "805                朝阳                                                     \n",
       "806                武汉                                                     \n",
       "807                海淀                         Beauty that comes with age  \n",
       "808                                     学IT，就先学《周哥教IT》，腾讯课堂一站式。少说少吃多做多思考  \n",
       "809  Minneapolis City                                                 内在  \n",
       "810                海淀  黄色大门🚪里有我未坐的火箭<span class=\"emoji emoji1f680\"></...  \n",
       "811                                              小时候，喜欢一个人，连作业本放一块，都觉得幸福  \n",
       "812      Kuala Lumpur   Only oneself can decide who you are. 생활이 점점 좋아진다  \n",
       "813                                                                 要努力。  \n",
       "814                海淀                                               了凡四训  \n",
       "815                朝阳                        有一家皮草店(雅宝城319)一页轻舟，双桨惊鸿，水天清  \n",
       "816                东城                                                     \n",
       "817                东城      江湖人称薛先生<span class=\"emoji emoji1f40e\"></span>  \n",
       "818                朝阳                                       事不拖，话不多，人不作！  \n",
       "819                                                              入巷间.吃汤面  \n",
       "820                                                                       \n",
       "821                丰台  If the road to dream is long,\\njust enjoy the ...  \n",
       "822                朝阳                                  爱是不死力量是疲惫生活中的英雄梦想  \n",
       "\n",
       "[823 rows x 5 columns]"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 601, in urlopen\n",
      "    chunked=chunked)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 387, in _make_request\n",
      "    six.raise_from(e, None)\n",
      "  File \"<string>\", line 2, in raise_from\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 383, in _make_request\n",
      "    httplib_response = conn.getresponse()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 1331, in getresponse\n",
      "    response.begin()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 297, in begin\n",
      "    version, status, reason = self._read_status()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 258, in _read_status\n",
      "    line = str(self.fp.readline(_MAXLINE + 1), \"iso-8859-1\")\n",
      "  File \"c:\\program files (x86)\\python\\lib\\socket.py\", line 586, in readinto\n",
      "    return self._sock.recv_into(b)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 1009, in recv_into\n",
      "    return self.read(nbytes, buffer)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 871, in read\n",
      "    return self._sslobj.read(len, buffer)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 631, in read\n",
      "    v = self._sslobj.read(len, buffer)\n",
      "ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 440, in send\n",
      "    timeout=timeout\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 639, in urlopen\n",
      "    _stacktrace=sys.exc_info()[2])\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\util\\retry.py\", line 388, in increment\n",
      "    raise MaxRetryError(_pool, url, error or ResponseError(cause))\n",
      "urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/webwxsync?sid=/QFFy7292WIdkXuD&skey=@crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&pass_ticket=pDoiHjhxule9H6XlamkkKKVVDgTpz4B4Hu7T9omOftw7VTkQ0zUgNyIA7cF%2F8%2Fl9 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)))\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 253, in maintain_loop\n",
      "    msgList, contactList = self.get_msg()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 334, in get_msg\n",
      "    r = self.s.post(url, data=json.dumps(data), headers=headers, timeout=config.TIMEOUT)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 555, in post\n",
      "    return self.request('POST', url, data=data, json=json, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 508, in request\n",
      "    resp = self.send(prep, **send_kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 618, in send\n",
      "    r = adapter.send(request, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 502, in send\n",
      "    raise ProxyError(e, request=request)\n",
      "requests.exceptions.ProxyError: HTTPSConnectionPool(host='wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/webwxsync?sid=/QFFy7292WIdkXuD&skey=@crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&pass_ticket=pDoiHjhxule9H6XlamkkKKVVDgTpz4B4Hu7T9omOftw7VTkQ0zUgNyIA7cF%2F8%2Fl9 (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(10054, '远程主机强迫关闭了一个现有的连接。', None, 10054, None)))\n",
      "\n"
     ]
    }
   ],
   "source": [
    "k_list = ['PYQuanPin','Sex','Province','City','Signature']\n",
    "df[k_list]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"ca29338255f24c0d9905044014b43bcd\" style=\"width:800px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_ca29338255f24c0d9905044014b43bcd = echarts.init(document.getElementById('ca29338255f24c0d9905044014b43bcd'), null, {renderer: 'canvas'});\n",
       "var option_ca29338255f24c0d9905044014b43bcd = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\\u997c\\u56fe\\u793a\\u4f8b\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 110277,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"pie\",\n",
       "            \"name\": \"\",\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\\u7537\",\n",
       "                    \"value\": 458\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5973\",\n",
       "                    \"value\": 320\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5176\\u4ed6\",\n",
       "                    \"value\": 44\n",
       "                }\n",
       "            ],\n",
       "            \"radius\": [\n",
       "                \"0%\",\n",
       "                \"75%\"\n",
       "            ],\n",
       "            \"center\": [\n",
       "                \"50%\",\n",
       "                \"50%\"\n",
       "            ],\n",
       "            \"roseType\": null,\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": \"outside\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": \"{b}: {d}%\"\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"seriesId\": 110277\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u7537\",\n",
       "                \"\\u5973\",\n",
       "                \"\\u5176\\u4ed6\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 12,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_ca29338255f24c0d9905044014b43bcd.setOption(option_ca29338255f24c0d9905044014b43bcd);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.pie.Pie at 0x1b685c1c908>"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import Pie\n",
    "#male，femal，other\n",
    "attr = [\"男\", \"女\", \"其他\"]\n",
    "v1 = [male, female, other]\n",
    "pie = Pie(\"饼图示例\")\n",
    "pie.add(\"\", attr, v1, is_label_show=True)\n",
    "\n",
    "pie"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"41f97c177dca4305b679c45c74ce7a8a\" style=\"width:800px;height:400px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts'], function(echarts) {\n",
       "        \n",
       "var myChart_41f97c177dca4305b679c45c74ce7a8a = echarts.init(document.getElementById('41f97c177dca4305b679c45c74ce7a8a'), null, {renderer: 'canvas'});\n",
       "var option_41f97c177dca4305b679c45c74ce7a8a = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 1058919,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"heatmap\",\n",
       "            \"name\": \"\\u70ed\\u529b\\u56fe\\u76f4\\u89d2\\u5750\\u6807\\u7cfb\",\n",
       "            \"data\": [\n",
       "                [\n",
       "                    0,\n",
       "                    0,\n",
       "                    31\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    1,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    2,\n",
       "                    33\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    3,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    4,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    5,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    0,\n",
       "                    6,\n",
       "                    12\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    0,\n",
       "                    22\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    1,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    2,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    3,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    4,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    5,\n",
       "                    18\n",
       "                ],\n",
       "                [\n",
       "                    1,\n",
       "                    6,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    0,\n",
       "                    33\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    1,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    2,\n",
       "                    28\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    3,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    4,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    5,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    2,\n",
       "                    6,\n",
       "                    19\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    0,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    1,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    2,\n",
       "                    9\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    3,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    4,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    5,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    3,\n",
       "                    6,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    0,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    1,\n",
       "                    38\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    2,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    3,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    4,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    5,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    4,\n",
       "                    6,\n",
       "                    33\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    0,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    1,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    2,\n",
       "                    19\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    3,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    4,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    5,\n",
       "                    4\n",
       "                ],\n",
       "                [\n",
       "                    5,\n",
       "                    6,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    0,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    1,\n",
       "                    31\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    2,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    3,\n",
       "                    12\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    4,\n",
       "                    21\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    5,\n",
       "                    18\n",
       "                ],\n",
       "                [\n",
       "                    6,\n",
       "                    6,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    0,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    1,\n",
       "                    4\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    2,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    3,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    4,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    5,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    7,\n",
       "                    6,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    0,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    1,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    2,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    3,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    4,\n",
       "                    21\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    5,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    8,\n",
       "                    6,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    0,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    1,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    2,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    3,\n",
       "                    35\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    4,\n",
       "                    38\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    5,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    9,\n",
       "                    6,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    0,\n",
       "                    31\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    1,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    2,\n",
       "                    39\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    3,\n",
       "                    8\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    4,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    5,\n",
       "                    19\n",
       "                ],\n",
       "                [\n",
       "                    10,\n",
       "                    6,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    0,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    1,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    2,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    3,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    4,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    5,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    11,\n",
       "                    6,\n",
       "                    38\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    0,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    1,\n",
       "                    16\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    2,\n",
       "                    0\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    3,\n",
       "                    8\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    4,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    5,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    12,\n",
       "                    6,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    0,\n",
       "                    3\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    1,\n",
       "                    33\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    2,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    3,\n",
       "                    9\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    4,\n",
       "                    11\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    5,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    13,\n",
       "                    6,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    0,\n",
       "                    43\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    1,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    2,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    3,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    4,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    5,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    14,\n",
       "                    6,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    0,\n",
       "                    23\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    1,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    2,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    3,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    4,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    5,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    15,\n",
       "                    6,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    0,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    1,\n",
       "                    17\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    2,\n",
       "                    27\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    3,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    4,\n",
       "                    5\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    5,\n",
       "                    36\n",
       "                ],\n",
       "                [\n",
       "                    16,\n",
       "                    6,\n",
       "                    41\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    0,\n",
       "                    15\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    1,\n",
       "                    12\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    2,\n",
       "                    46\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    3,\n",
       "                    32\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    4,\n",
       "                    8\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    5,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    17,\n",
       "                    6,\n",
       "                    35\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    0,\n",
       "                    16\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    1,\n",
       "                    14\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    2,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    3,\n",
       "                    30\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    4,\n",
       "                    28\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    5,\n",
       "                    37\n",
       "                ],\n",
       "                [\n",
       "                    18,\n",
       "                    6,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    0,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    1,\n",
       "                    44\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    2,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    3,\n",
       "                    6\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    4,\n",
       "                    47\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    5,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    19,\n",
       "                    6,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    0,\n",
       "                    21\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    1,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    2,\n",
       "                    34\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    3,\n",
       "                    13\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    4,\n",
       "                    10\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    5,\n",
       "                    1\n",
       "                ],\n",
       "                [\n",
       "                    20,\n",
       "                    6,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    0,\n",
       "                    32\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    1,\n",
       "                    39\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    2,\n",
       "                    48\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    3,\n",
       "                    29\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    4,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    5,\n",
       "                    42\n",
       "                ],\n",
       "                [\n",
       "                    21,\n",
       "                    6,\n",
       "                    2\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    0,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    1,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    2,\n",
       "                    7\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    3,\n",
       "                    45\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    4,\n",
       "                    12\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    5,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    22,\n",
       "                    6,\n",
       "                    32\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    0,\n",
       "                    26\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    1,\n",
       "                    40\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    2,\n",
       "                    24\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    3,\n",
       "                    49\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    4,\n",
       "                    20\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    5,\n",
       "                    25\n",
       "                ],\n",
       "                [\n",
       "                    23,\n",
       "                    6,\n",
       "                    25\n",
       "                ]\n",
       "            ],\n",
       "            \"label\": {\n",
       "                \"normal\": {\n",
       "                    \"show\": false,\n",
       "                    \"position\": \"top\",\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#000\",\n",
       "                        \"fontSize\": 12\n",
       "                    },\n",
       "                    \"formatter\": null\n",
       "                },\n",
       "                \"emphasis\": {\n",
       "                    \"show\": true,\n",
       "                    \"position\": null,\n",
       "                    \"textStyle\": {\n",
       "                        \"color\": \"#fff\",\n",
       "                        \"fontSize\": 12\n",
       "                    }\n",
       "                }\n",
       "            },\n",
       "            \"seriesId\": 1058919\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [\n",
       "                \"\\u70ed\\u529b\\u56fe\\u76f4\\u89d2\\u5750\\u6807\\u7cfb\"\n",
       "            ],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 12,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"xAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"interval\": \"auto\",\n",
       "                \"rotate\": 0,\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 12,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"data\": [\n",
       "                \"12a\",\n",
       "                \"1a\",\n",
       "                \"2a\",\n",
       "                \"3a\",\n",
       "                \"4a\",\n",
       "                \"5a\",\n",
       "                \"6a\",\n",
       "                \"7a\",\n",
       "                \"8a\",\n",
       "                \"9a\",\n",
       "                \"10a\",\n",
       "                \"11a\",\n",
       "                \"12p\",\n",
       "                \"1p\",\n",
       "                \"2p\",\n",
       "                \"3p\",\n",
       "                \"4p\",\n",
       "                \"5p\",\n",
       "                \"6p\",\n",
       "                \"7p\",\n",
       "                \"8p\",\n",
       "                \"9p\",\n",
       "                \"10p\",\n",
       "                \"11p\"\n",
       "            ],\n",
       "            \"type\": \"category\",\n",
       "            \"splitArea\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"yAxis\": [\n",
       "        {\n",
       "            \"name\": \"\",\n",
       "            \"show\": true,\n",
       "            \"nameLocation\": \"middle\",\n",
       "            \"nameGap\": 25,\n",
       "            \"nameTextStyle\": {\n",
       "                \"fontSize\": 14\n",
       "            },\n",
       "            \"axisLabel\": {\n",
       "                \"formatter\": \"{value} \",\n",
       "                \"rotate\": 0,\n",
       "                \"interval\": \"auto\",\n",
       "                \"margin\": 8,\n",
       "                \"textStyle\": {\n",
       "                    \"fontSize\": 12,\n",
       "                    \"color\": \"#000\"\n",
       "                }\n",
       "            },\n",
       "            \"axisTick\": {\n",
       "                \"alignWithLabel\": false\n",
       "            },\n",
       "            \"inverse\": false,\n",
       "            \"position\": null,\n",
       "            \"boundaryGap\": true,\n",
       "            \"min\": null,\n",
       "            \"max\": null,\n",
       "            \"splitLine\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"type\": \"category\",\n",
       "            \"data\": [\n",
       "                \"Saturday\",\n",
       "                \"Friday\",\n",
       "                \"Thursday\",\n",
       "                \"Wednesday\",\n",
       "                \"Tuesday\",\n",
       "                \"Monday\",\n",
       "                \"Sunday\"\n",
       "            ],\n",
       "            \"splitArea\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ],\n",
       "    \"visualMap\": {\n",
       "        \"type\": \"continuous\",\n",
       "        \"min\": 0,\n",
       "        \"max\": 100,\n",
       "        \"text\": [\n",
       "            \"high\",\n",
       "            \"low\"\n",
       "        ],\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#000\"\n",
       "        },\n",
       "        \"inRange\": {\n",
       "            \"color\": [\n",
       "                \"#50a3ba\",\n",
       "                \"#eac763\",\n",
       "                \"#d94e5d\"\n",
       "            ]\n",
       "        },\n",
       "        \"calculable\": true,\n",
       "        \"splitNumber\": 5,\n",
       "        \"dimension\": null,\n",
       "        \"orient\": \"horizontal\",\n",
       "        \"left\": \"left\",\n",
       "        \"top\": \"bottom\",\n",
       "        \"showLabel\": true\n",
       "    }\n",
       "};\n",
       "myChart_41f97c177dca4305b679c45c74ce7a8a.setOption(option_41f97c177dca4305b679c45c74ce7a8a);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.heatmap.HeatMap at 0x1b6e8a625c0>"
      ]
     },
     "execution_count": 74,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import numpy as np\n",
    "from pyecharts import HeatMap\n",
    "\n",
    "x_axis = [\"12a\", \"1a\", \"2a\", \"3a\", \"4a\", \"5a\", \"6a\", \"7a\", \"8a\", \"9a\", \"10a\", \"11a\",\n",
    "          \"12p\", \"1p\", \"2p\", \"3p\", \"4p\", \"5p\", \"6p\", \"7p\", \"8p\", \"9p\", \"10p\", \"11p\"]\n",
    "y_aixs = [\"Saturday\", \"Friday\", \"Thursday\", \"Wednesday\", \"Tuesday\", \"Monday\", \"Sunday\"]\n",
    "data = [[i, j, np.random.randint(0, 50)] for i in range(24) for j in range(7)]\n",
    "heatmap = HeatMap()\n",
    "heatmap.add(\"热力图直角坐标系\", x_axis, y_aixs, data, is_visualmap=True,\n",
    "            visual_text_color=\"#000\", visual_orient='horizontal')\n",
    "\n",
    "heatmap"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyecharts import Geo\n",
    "\n",
    "data = [\n",
    "    (\"海门\", 9),(\"鄂尔多斯\", 12),(\"招远\", 12),(\"舟山\", 12),(\"齐齐哈尔\", 14),(\"盐城\", 15),\n",
    "    (\"赤峰\", 16),(\"青岛\", 18),(\"乳山\", 18),(\"金昌\", 19),(\"泉州\", 21),(\"莱西\", 21),\n",
    "    (\"日照\", 21),(\"胶南\", 22),(\"南通\", 23),(\"拉萨\", 24),(\"云浮\", 24),(\"梅州\", 25),\n",
    "    (\"文登\", 25),(\"上海\", 25),(\"攀枝花\", 25),(\"威海\", 25),(\"承德\", 25),(\"厦门\", 26),\n",
    "    (\"汕尾\", 26),(\"潮州\", 26),(\"丹东\", 27),(\"太仓\", 27),(\"曲靖\", 27),(\"烟台\", 28),\n",
    "    (\"福州\", 29),(\"瓦房店\", 30),(\"即墨\", 30),(\"抚顺\", 31),(\"玉溪\", 31),(\"张家口\", 31),\n",
    "    (\"阳泉\", 31),(\"莱州\", 32),(\"湖州\", 32),(\"汕头\", 32),(\"昆山\", 33),(\"宁波\", 33),\n",
    "    (\"湛江\", 33),(\"揭阳\", 34),(\"荣成\", 34),(\"连云港\", 35),(\"葫芦岛\", 35),(\"常熟\", 36),\n",
    "    (\"东莞\", 36),(\"河源\", 36),(\"淮安\", 36),(\"泰州\", 36),(\"南宁\", 37),(\"营口\", 37),\n",
    "    (\"惠州\", 37),(\"江阴\", 37),(\"蓬莱\", 37),(\"韶关\", 38),(\"嘉峪关\", 38),(\"广州\", 38),\n",
    "    (\"延安\", 38),(\"太原\", 39),(\"清远\", 39),(\"中山\", 39),(\"昆明\", 39),(\"寿光\", 40),\n",
    "    (\"盘锦\", 40),(\"长治\", 41),(\"深圳\", 41),(\"珠海\", 42),(\"宿迁\", 43),(\"咸阳\", 43),\n",
    "    (\"铜川\", 44),(\"平度\", 44),(\"佛山\", 44),(\"海口\", 44),(\"江门\", 45),(\"章丘\", 45),\n",
    "    (\"肇庆\", 46),(\"大连\", 47),(\"临汾\", 47),(\"吴江\", 47),(\"石嘴山\", 49),(\"沈阳\", 50),\n",
    "    (\"苏州\", 50),(\"茂名\", 50),(\"嘉兴\", 51),(\"长春\", 51),(\"胶州\", 52),(\"银川\", 52),\n",
    "    (\"张家港\", 52),(\"三门峡\", 53),(\"锦州\", 54),(\"南昌\", 54),(\"柳州\", 54),(\"三亚\", 54),\n",
    "    (\"自贡\", 56),(\"吉林\", 56),(\"阳江\", 57),(\"泸州\", 57),(\"西宁\", 57),(\"宜宾\", 58),\n",
    "    (\"呼和浩特\", 58),(\"成都\", 58),(\"大同\", 58),(\"镇江\", 59),(\"桂林\", 59),(\"张家界\", 59),\n",
    "    (\"宜兴\", 59),(\"北海\", 60),(\"西安\", 61),(\"金坛\", 62),(\"东营\", 62),(\"牡丹江\", 63),\n",
    "    (\"遵义\", 63),(\"绍兴\", 63),(\"扬州\", 64),(\"常州\", 64),(\"潍坊\", 65),(\"重庆\", 66),\n",
    "    (\"台州\", 67),(\"南京\", 67),(\"滨州\", 70),(\"贵阳\", 71),(\"无锡\", 71),(\"本溪\", 71),\n",
    "    (\"克拉玛依\", 72),(\"渭南\", 72),(\"马鞍山\", 72),(\"宝鸡\", 72),(\"焦作\", 75),(\"句容\", 75),\n",
    "    (\"北京\", 79),(\"徐州\", 79),(\"衡水\", 80),(\"包头\", 80),(\"绵阳\", 80),(\"乌鲁木齐\", 84),\n",
    "    (\"枣庄\", 84),(\"杭州\", 84),(\"淄博\", 85),(\"鞍山\", 86),(\"溧阳\", 86),(\"库尔勒\", 86),\n",
    "    (\"安阳\", 90),(\"开封\", 90),(\"济南\", 92),(\"德阳\", 93),(\"温州\", 95),(\"九江\", 96),\n",
    "    (\"邯郸\", 98),(\"临安\", 99),(\"兰州\", 99),(\"沧州\", 100),(\"临沂\", 103),(\"南充\", 104),\n",
    "    (\"天津\", 105),(\"富阳\", 106),(\"泰安\", 112),(\"诸暨\", 112),(\"郑州\", 113),(\"哈尔滨\", 114),\n",
    "    (\"聊城\", 116),(\"芜湖\", 117),(\"唐山\", 119),(\"平顶山\", 119),(\"邢台\", 119),(\"德州\", 120),\n",
    "    (\"济宁\", 120),(\"荆州\", 127),(\"宜昌\", 130),(\"义乌\", 132),(\"丽水\", 133),(\"洛阳\", 134),\n",
    "    (\"秦皇岛\", 136),(\"株洲\", 143),(\"石家庄\", 147),(\"莱芜\", 148),(\"常德\", 152),(\"保定\", 153),\n",
    "    (\"湘潭\", 154),(\"金华\", 157),(\"岳阳\", 169),(\"长沙\", 175),(\"衢州\", 177),(\"廊坊\", 193),\n",
    "    (\"菏泽\", 194),(\"合肥\", 229),(\"武汉\", 273),(\"大庆\", 279)]\n",
    "\n",
    "geo = Geo(\"全国主要城市空气质量\", \"data from pm2.5\", title_color=\"#fff\", title_pos=\"center\",\n",
    "width=1200, height=600, background_color='#404a59')\n",
    "attr, value = geo.cast(data)\n",
    "geo.add(\"\", attr, value, visual_range=[0, 200], visual_text_color=\"#fff\", symbol_size=15, is_visualmap=True)\n",
    "geo.render('geo.html')\n",
    "#http://localhost:8888/files/geo.html"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 作业\n",
    "- 画出自己的朋友圈地域分布图\n",
    "![分布](https://img-blog.csdn.net/20180312004444278?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjQ4NTA5OQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)\n",
    "![省份](https://img-blog.csdn.net/20180312004912923?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjQ4NTA5OQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)\n",
    "- [python分析微信朋友圈](https://blog.csdn.net/u012485099/article/details/79522144)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<echarts.Echart at 0x1b6e8a5d908>"
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 使用echarts，加上这段\n",
    "import sys\n",
    "#reload(sys)\n",
    "#sys.setdefaultencoding('utf-8')\n",
    "\n",
    "from echarts import Echart, Legend, Pie\n",
    "chart = Echart(u'%s的微信好友性别比例' % (friends[0]['NickName']), 'from WeChat')\n",
    "chart.use(Pie('WeChat',\n",
    "              [{'value': male, 'name': u'男性 %.2f%%' % (float(male) / total * 100)},\n",
    "               {'value': female, 'name': u'女性 %.2f%%' % (float(female) / total * 100)},\n",
    "               {'value': other, 'name': u'其他 %.2f%%' % (float(other) / total * 100)}],\n",
    "              radius=[\"50%\", \"70%\"]))\n",
    "chart.use(Legend([\"male\", \"female\", \"other\"]))\n",
    "del chart.json[\"xAxis\"]\n",
    "del chart.json[\"yAxis\"]\n",
    "chart\n",
    "#chart.plot()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "微信好友签名如下：\n",
      "--------------------------------------------------\n",
      "自律更自由\n",
      "经风雨，见彩虹。\n",
      "厚德载物，自强不息。\n",
      "Remember you are on journey now. Catch every moment.\n",
      "there is no one like jesus\n",
      "我就是我\n",
      "圣人不死，大盗不止\n",
      "哈哈\n",
      "一张一驰，气逾霄汉\n",
      "尼玛明明邹市明赢\n",
      "不管岁月静好,还是乱世苟活,君子皆不苟安。\n",
      "应当发愿愿往生,客路西山任彼恋,自是不归归便得,故乡风月有谁争\n",
      "上善若水\n",
      "新号b20160116\n",
      "流星划过，留下的是什么？\n",
      "2016 微笑\n",
      "专心做自己\n",
      "海到无边天作岸，山登绝顶我为峰\n",
      "愿为一棵不屈的树\n",
      "hide and seek\n",
      "井蛙不可语于海者，拘于虚也；夏虫不可语于冰者，笃于时也。\n",
      "新年快乐\n",
      "赢要赢得精彩，输也要输的华丽\n",
      "可以平凡 但不能甘于平凡！\n",
      "事业 战斗 不停息\n",
      "2015\n",
      "receive, practice, produce, influence, iterate\n",
      "重复中不冒不失的倔强，\n",
      "安静中不慌不忙的坚强。\n",
      "似水无痕\n",
      "相信美好的事情终会发生\n",
      "不忘初心，继续前进！\n",
      "在心中修篱种菊\n",
      "关于信任\n",
      "在北京的广西人\n",
      "科技关怀人文\n",
      "always on the way\n",
      "880155836571，880128313062，112036014006\n",
      "博观而约取，厚积而薄发，在热爱的领域努力地玩耍\n",
      "旧金山湾区吃货小分队队长（活人！晚上还是要睡觉的！）\n",
      "life is too short to wait\n",
      "知识创造乐趣，你是你的大学 www.wanmen.org\n",
      "不抛弃，不放弃，不纠结\n",
      "朋友圈停用\n",
      "开心就好\n",
      "A dog has its day.\n",
      "哈哈～\n",
      "让梦想大于胆怯，让行动强于语言\n",
      "没有朋友圈，多谢关心\n",
      "大数据和人工智能\n",
      "知行合一\n",
      "computer science artist\n",
      "See something, Say something～\n",
      "更具挑战的一年\n",
      "因为有你，心存感激！\n",
      "怎能就让这不停燃烧的心 就这样耗尽消失在平庸里\n",
      "hope &amp; control\n",
      "如香象过河'金刚怒目'勇猛精进\n",
      "Every Day\n",
      "17301394776 新号码\n",
      "平和之中淡淡的喜悦\n",
      "You should set your own standard of excellence!\n",
      "心有多大，舞台就有多大\n",
      "为了吃顿蒸饺，折腾3个小时，切肉手都磨起泡，刀是有多钝啊！\n",
      "Lead your life，rather than live your life\n",
      "吾日三省吾身，高吗？富吗？帅吗？\n",
      "远离颠倒梦想\n",
      "知己者明\n",
      "Life is short\n",
      "一切有为法，如梦幻泡影，如露亦如电，应作如是观\n",
      "AI理解不了自己不能创造的东西\n",
      "敬畏\n",
      "忙碌的人不迷茫，有梦的人不孤独，生活要有诗和远方！\n",
      "前进是一种动力\n",
      "思想 ",
      "定位\n",
      "享受生活的将军\n",
      "杜\n",
      "越努力，越幸运！\n",
      "领悟本质，努力前行。\n",
      "关注新材料、产业应用机器人与人工智能\n",
      "I'd just be the catcher in the rye and all.\n",
      "心有猛虎，细嗅蔷薇\n",
      "Be happy, but not satisfied.\n",
      "邴邴乎其似喜乎🍒。\n",
      "光环新网\n",
      "输入法爱好者，机器学习外行，NLP入门，编程爱好者，足球大师\n",
      "过去以后，未来之前\n",
      "恰到好处(✪▽✪)\n",
      "live in live\n",
      "用勇气改变可以改变的，用胸怀接受不可改变的\n",
      "要转发朋友圈做宣传的海报请发给AI前线小前: ai-front666，谢谢\n",
      "好好爱自己比什么都重要\n",
      "一步一步\n",
      "自强不息，耐得住寂寞才憋得了大招。 @futrue @all\n",
      "北京，北京\n",
      "遇见更好的自己< =\" \n",
      "bless...\n",
      "努力奔跑\n",
      "喜欢美食，瑜伽，电影，热爱旅行的程序员，maybe也是化妆师～～\n",
      "若无相欠 怎会相见\n",
      "以昨天为鉴，以今天为乐，以明天为盼！\n",
      "家事国事天下事不闻闲事\n",
      "风声雨声读书声只读闲书\n",
      "心平气和\n",
      "新号13596190779\n",
      "Update\n",
      "永远年轻，永远热泪盈眶\n",
      "心怀猛虎，细嗅蔷薇\n",
      "在线\n",
      "中年油腻\n",
      "不签名，没个性\n",
      "日行一善\n",
      "DataFun, have fun!\n",
      "不忘初心，方得始终\n",
      "吃土少女\n",
      "把自己看成一款产品，你的灵魂就是你的产品经理\n",
      "在路上...\n",
      "让优秀成为一种习惯！\n",
      "FinTech\n",
      "积极生活\n",
      "以己为尺\n",
      "身是菩提，行坐皆禅入莲境，\n",
      "心如莲华，匠心有道归清平。\n",
      "坚强而勇敢，仁慈而善良。\n",
      "好好学习，天天向上\n",
      "主要看气质\n",
      "忽略掉一切\n",
      "严以律己宽以待人\n",
      "幸福是自找的\n",
      "die Schönheit und Weisheit mit ewiger Kron'\n",
      "享受生活\n",
      "Talk is cheap, show me the code.\n",
      "快乐生活～\n",
      "The trouble is, you think you have time.\n",
      "春风十月，不如你\n",
      "坚强而勇敢，仁慈而善良！保持自我，善待自己！雅淡尊仁！\n",
      "生如夏花之绚烂，死如秋叶之静美\n",
      "诚以待人，但求以诚相待\n",
      "最近事情偏多，微信不能及时回复，有急事请电话联系。\n",
      "体验感一级棒的外教英语课免费分享\n",
      "爱生活，爱自己，多一些改变。\n",
      "Stay hungry, stay foolish.\n",
      "专注视觉算法分发，欢迎合作咨询\n",
      "千古艰难小生死，万代权衡大是非\n",
      "好朋友\n",
      "Be optimistic and do what you love ！< =\" \n",
      "进群前请说明是通过哪个渠道来的哦（否则不予通过）\n",
      "厚德载物，自强不息！\n",
      "。。。\n",
      "kangkang\n",
      "易选股 创始人|CTO\n",
      "过慧易夭 情深不寿 强极则辱\n",
      "面朝大海，春暖花开\n",
      "啧啧~\n",
      "放眼未来\n",
      "随心远行。\n",
      "不忘初心，方得始终。\n",
      "专注点赞30年！\n",
      "越努力，越幸运\n",
      "人生的征途是星辰大海\n",
      "。。。。\n",
      "详细的功能可以见github仓库wiki页。\n",
      "不忘初心，方得始终。\n",
      "生活不止眼前的苟且，还有诗和远方的田野。\n",
      "你们心里住着缝纫机， 我的心里住着拖拉机。\n",
      "技术改变生活啊〜\n",
      "生于忧患～\n",
      "既见君子，云胡不喜\n",
      "13310005530@sh  吃饱穿暖，好好工作，锻炼身体，好好挣钱\n",
      "闷声发大财\n",
      "sanity is for the weak\n",
      "笑一笑< =\" \n",
      "一群有情有义的人，做一件有意义的事！\n",
      "把握当下，你就是奇迹！\n",
      "白驹过隙，不过转瞬，韶华白首，不过百年，好好加油\n",
      "朝闻道，夕死可矣\n",
      "2018继续加油！不忘初心，继续前进！\n",
      "平安是福！\n",
      "卓越的秘密不在于你知道些什么 而在于你做了些什么\n",
      "轨迹\n",
      "play hard，work hard\n",
      "Reverse Our Thinking\n",
      "小李得奖，证明做事要持之以恒\n",
      "不懂互联网的产品经理\n",
      "winner-take-all\n",
      "天命\n",
      "感恩\n",
      "Jason：校园VC创始人，创业布道师，《从零到英雄》作者\n",
      "时不我待\n",
      "诸行无常 诸漏皆苦 诸法无我 涅盘寂静\n",
      "抽风的文艺，文艺的抽风\n",
      "人生二百年，击水三万里\n",
      "时光温柔，还需你懂。生活可爱，也要你宠。\n",
      "只有没想到的，没有做不到的。\n",
      "🇦🇶\n",
      "我是奇葩\n",
      "岁月的沧桑也无法唤醒永远年轻的心\n",
      "Chérie, je crois que notre avenir！\n",
      "它世界，我做主\n",
      "无趣\n",
      "迷路了吗\n",
      "珍惜拥有\n",
      "不忘初心\n",
      "开放创新，合作共赢\n",
      "“受过教育的标志是可以去思考一种思想，而不是去接受它。”\n",
      "Big thing has small beginning\n",
      "保持平静和快乐，保持正确和自由的头脑！\n",
      "---托蒂，罗马\n",
      "但行耕耘，莫问收获\n",
      "微信满人请加kejimitan1\n",
      "加油\n",
      "春天到了...\n",
      "让你< =\" \n",
      "介绍一下你自己\n",
      "光影.故事.忙碌.期待.爱情.友情.亲情.幸福.憧憬.甜蜜.趣味.梦想.\n",
      "唯有在基督里，爱情才不止于一世情缘，而是永生永世直至永恒！\n",
      "info@storehouses.nl邮件联系我更有效\n",
      "值此五一快乐劳动之际，换个联系方式庆祝一下，15098696689 < =\" \n",
      "我是天边的一片云\n",
      ".io\n",
      "独一无二的时间钟，简单而不单调。快乐行动\n",
      "试试\n",
      "年轻不是脑袋上没有白发，而是脑袋里装满新想法。\n",
      "September October\n",
      "没有个性还要签名么？\n",
      "沉淀－仰望\n",
      "2018……\n",
      "步履不停< =\" \n",
      "Machine Learning Engineer\n",
      "不愿老此江湖\n",
      "草履虫户外，咨询留言即可，工作日48小时内 上午9:30-晚上18:00\n",
      "百老汇小秘书早10点至晚6点准时恭候各种询问！\n",
      "Yes and\n",
      "一路走来，始终如一。\n",
      "Every flight begins with a fall\n",
      "c'est la vie\n",
      "很多时候，我们都只是感动了自己\n",
      "Better\n",
      "执一\n",
      "年薪40万-65万互联网业职位，架构师，Hadoop，前端，java安卓等\n",
      "我要哭了，刚停药满脸的痘痘就全冒出来了\n",
      "遇一人白首,择一城终老,予一己真心,盼一生偕老。\n",
      "人丑就要多干活\n",
      "因为，出于　神的话，没有一句不带能力的.\n",
      "低调做人，高调做事！……一辈子一件事做到极致，想不成功都难！\n",
      "偶像冈部伦太郎\n",
      "simple﹉happy~lifetime\n",
      "头像是本人\n",
      "中国平安优秀理财顾问\n",
      "保险专家   生活助手\n",
      "电话:18696420243\n",
      "好友已满，看直播，请加geektime001\n",
      "微笑每一天！\n",
      "宁缺毋滥             ——aq\n",
      "C'est la vie\n",
      "宁静致远\n",
      "。\n",
      "我要成为一个小太阳\n",
      "发上等愿结中等缘亨下等福，择高处立寻平处往向宽处行！\n",
      "在路上，见识世界；在途中，认清自己\n",
      "一个不知足的人（摊手）\n",
      "倾心投入，相信未来\n",
      "求于至简 归于永恒\n",
      "加好友的请注姓名和加好友原因！！\n",
      "电话15311488816  17600473983 愿所有人都与爱相遇\n",
      "没有人在乎你在乎的事 就像我\n",
      "龙戏九江水，虎登万重山\n",
      "练习一万小时\n",
      "不枉此生 忠于自己\n",
      "悟已往之不谏，知来者之可追\n",
      "淡定\n",
      "精神洁癖是种病，无药可解！\n",
      "努力追求完美，努力与世界妥协！\n",
      "自信开心的笑\n",
      "再不疯狂我们就要老了\n",
      "大器晚成！天道酬勤！\n",
      "AI慕课学院-用专业打动专业\n",
      "刘\n",
      "还蛮好玩的嘛\n",
      "好好活着，要么赶紧去死\n",
      "境如风云随缘现，心如晴空不动天…\n",
      "时间总会留下真正对的人\n",
      "好困！！\n",
      "放松心态做自己\n",
      "Voila~~~\n",
      "众志成城 其利断金\n",
      "没有自制力的人不足以谈人生。\n",
      "晴天小旭旭，初入不留名，咩\n",
      "无\n",
      "心有猛虎，细嗅蔷薇\n",
      "Above all powers , Above all kings < =\" \n",
      "Passion creates future\n",
      "全民美育\n",
      "人生在世真正幸福需要三件事情: 有人爱，有事做，有所期待～\n",
      "花常好，月常圆，人长久。\n",
      "有福方能坐读书.\n",
      "但行善事，莫问前程\n",
      "会当凌绝顶，一览众山小\n",
      "L铁、L串、L书、LOL\n",
      "公园里87-105便利店\n",
      "从事婚恋行业9年时间，擅长撮合恋爱；相互信任才能帮你脱单\n",
      "天下事只在人力作为，到山穷水尽之时自有路走，只要切实去办。\n",
      "多敲代码，少说话，再说产品给你提bug！\n",
      "通灵自省乐享永生\n",
      "俯视、仰望\n",
      "Modern Muse: confident and amazing!\n",
      "社长号好友上限，大家推给好友时可添加bajiaojiao_sz助手号。\n",
      "脚踏实地，活在未来！\n",
      "面朝大海 春暖花开\n",
      "没有个性不签名！\n",
      "< =\" \n",
      "万物皆有裂痕，那是光进来的地方\n",
      "尽情生活\n",
      "A ZA！A ZA！ Fighting！\n",
      "数人云\n",
      "< =\" \n",
      "*^^*\n",
      "关注数据智能与产业应用，请备注姓名公司职位理由\n",
      "以心相交，成其久远\n",
      "銷我億劫顛倒想\n",
      "生命当如夏花般灿烂\n",
      "< =\" \n",
      "所当乘者，势也；不可失者，时也。\n",
      "心里有个不败的夏天\n",
      "我总比你看到的要复杂\n",
      "结硬寨 打呆战\n",
      "人生就是debugging\n",
      "最穷不过讨饭，不死终会出头\n",
      "stay curious\n",
      "爱情证书\n",
      "5.23-25，培训，三天两晚，勿扰\n",
      "所到之处即故乡\n",
      "以冷情当事，如汤之消雪。\n",
      "理解，尊重，信任，沟通\n",
      "왕일명\n",
      "此号已满\n",
      "他强由他强，清风拂山岗！\n",
      "在能承受结果的范围内随心所欲\n",
      "Done is better than perfect.\n",
      "向内认知，向外行走。\n",
      "What an opportunity\n",
      "拥有一栋楼\n",
      "用1-3分钟，了解你的情况，明白你的需求，给你简短的建议。\n",
      "最初的梦想\n",
      "善未易明，理未易察。\n",
      "fasten your seatbelts\n",
      "行有不得，反求诸己。\n",
      "岁月不曾辜负任何人 只是我们一直在挥霍时光。。。\n",
      "既往不恋，纵情未来\n",
      "The hadrer,the luckier。\n",
      "没人会知道你过得好不好，但别人一眼就能看出你胖没胖！< =\" \n",
      "你的信任，是我最大的值得……\n",
      "15976860727\n",
      "与良师同行，与益友相伴。\n",
      "曾伴浮云归晚翠  犹陪落日泛秋声  纷纷万事 直道而行\n",
      "自律、拼命、有追求\n",
      "顶尖测试，快，简单，极致。\n",
      "未填写啊！\n",
      "人生的路，得自己走< =\" \n",
      "“忘记背后，努力面前，向着标杆直跑”\n",
      "人一切的痛苦，本质上都是对自己无能的愤怒\n",
      "泰然自若\n",
      "大帅\n",
      "在本应该拼搏的年龄，绝不应该蹉跎时光\n",
      "可不可以不要这么热？！\n",
      "1.我们这里不教炒币; 2.要入群请发姓名-公司-职位，信息齐全优先\n",
      "Less is more\n",
      "认真你就输了\n",
      "熬最晚的夜，涂最好的面霜\n",
      "Healthcare VC, DK Consulting founder, Oncology PhD\n",
      "left is right，right is wrong🙃\n",
      "3D Print,Arduino,Scratch,EV3,LEGO,K12,STEAM,AI,Python\n",
      "ParkHunt Technology Co.,Ltd.\n",
      "Carpe diem\n",
      "工作太忙，今年变salsa女高的计划就延期一年吧。\n",
      "眾生度盡，方證菩提；地獄不空，誓不成佛。\n",
      "给时光以生命，而不是给生命以时光\n",
      "取法平上  仅得为中\n",
      "开哥是我女神\n",
      "不忘初心！\n",
      "Do what you like, like what you do!\n",
      "2018年，每天都有小幸福\n",
      "如果不是真心，就别对我太好\n",
      "eat good, stay focused.\n",
      "Be interesting\n",
      "我努力的想要不普通，好多年后发现，普通，是一种不可改变的命运\n",
      "互联网金融观察、网贷运营干货分享\n",
      "杨娟\n",
      "行动活在当下，认知活在未来< =\" \n",
      "诚实守信，快乐人生\n",
      "专注微信|知乎|头条等新媒体平台内容创作与品牌营销\n",
      "修炼自己\n",
      "前30年的努力，只为后30年的幸福人生\n",
      "喜新厌旧之本能反应\n",
      "世界那么大，我想去看看\n",
      "上班时间没事不要找我\n",
      "一念善生，悉皆成就\n",
      "说起来简单\n",
      "天下唯庸人无咎无誉\n",
      "人间有大碍\n",
      "手机号：13810057827\n",
      "快看，抓到一只野生程序猿！\n",
      "过去已过去，未来还未来！\n",
      "世界的样子，并非是你想象的样子\n",
      "OuT很多年...\n",
      "分享创造价值\n",
      "6.15\n",
      "Happy every day\n",
      "🦋行至三分之一处\n",
      "不要和笨蛋争论，会变成笨蛋\n",
      "不以物喜不以己悲，顺其自然便好！\n",
      "事实 不等于真相\n",
      "Trust the Process\n",
      "不解释就弄不懂的事就意味着怎么解释都弄不懂\n",
      "诺不轻许\n",
      "你的努力，时光知道。\n",
      "企鹅家族一员:leisure\n",
      "时而落寞 时而得得搜搜的\n",
      "漫漫长路上，只配错过好姑娘\n",
      "Hope！\n",
      "认真生活，快乐工作\n",
      "想要得到什么就必须自己先做到什么\n",
      "小赢靠智，大赢靠德\n",
      "白首不相离\n",
      "more directly\n",
      "有态度，有担当，有逻辑\n",
      "Come on!\n",
      "以颤抖之身追赶，以敬畏之心挑战。\n",
      "做更好的自己\n",
      "何必为部分生活而哭泣？君不见全部人生都催人泪下。\n",
      "吧啦吧啦\n",
      "我相信\n",
      "它山之石，可以攻玉。\n",
      "我想推倒那堵墙\n",
      "天下本无事，庸人自扰之\n",
      "< =\" \n",
      "认真地活在当下\n",
      "< =\" \n",
      "明心见性\n",
      "命中注定有和无，何必强求！\n",
      "Do the right thing and do the thing right.\n",
      "梦想还是要有的，万一实现了呢\n",
      "身未动 心已远\n",
      "shut up\n",
      "再也没有甜筒了< =\" \n",
      "我唯一所知的就是我一无所知\n",
      "Follow your heart！\n",
      "前半生学习，后半生明白\n",
      "since 1926\n",
      "贵！在坚持！                        要！一直赢！\n",
      "Life is short, enjoy ur coffee.\n",
      "发上等愿，结中等缘，享下等福；择高处立，寻平处住，向宽处行。\n",
      "燕霞\n",
      "写点什么好呢。。。。。。\n",
      "写点什么好呢。。。。。。\n",
      "愿我三冬暖，愿我春不寒，愿我天黑有灯，下午有伞。\n",
      "默默的成长^_-\n",
      "北京大学SMS\n",
      "追求充实，完美！\n",
      "bless u\n",
      "哎哟喂，别跑，保证不打死你\n",
      "希望你吃到的樱桃都和我一样甜 🍒\n",
      "2。\n",
      "我在热力学第二定律下出生，拉普拉斯改变了我的方向。\n",
      "一切都是最好的安排！\n",
      "....\n",
      "坚持读书跑步，去百病，解千愁。\n",
      "仰观宇宙之大，俯察品类之盛\n",
      "自律是人生最尊贵的标配\n",
      "旅行是一种毒 让我不能自拔\n",
      "江山笑 烟雨遥\n",
      "活得真，常积善，广爱美。\n",
      "这个微信号满员了，不加人了！\n",
      "我去接小朋友回家\n",
      "只要信 ，不要怕！\n",
      "Ubtech Brand Officier，请叫我kiki！姐姐！\n",
      "【优于昨天的自己】\n",
      "抬头有未知，低头是思念。\n",
      "不要坑人。\n",
      "厚德载物，方向，合作，努力\n",
      "做好自己\n",
      "Tomorrow is another day &amp; Live in the moment！\n",
      "Growth Mindset\n",
      "退无可退\n",
      "好看的气囊不想理你，有趣的灵魂三百多斤。\n",
      "让开发更性感\n",
      "2018 发大愿，做小事＆向内发力，向外行走\n",
      "蓄力\n",
      "努力奋斗！ ꧁꫞꯭꫞꧂\n",
      "< =\" 2747\"></> < =\" 2747\"></> < =\" 2747\"></> < =\" 2747\"></> < =\" 2747\"></>\n",
      "梦想住火星的大元\n",
      "无\n",
      "本微信满了，加新号：kaopuhuiclub\n",
      "就像一个快要淹死的人，只能拼了命去挣扎\n",
      "添加好友，请注明专场\n",
      "早睡早起，诚心待人，努力奋斗，家庭和睦\n",
      "延迟满足。\n",
      "愛無き美など空しい幻に過ぎない。【烏有に帰せばいい！\n",
      "(^○^)\n",
      "This moment\n",
      "彪悍勇敢 简单温暖\n",
      "我爱吃< =\" \n",
      "内持定见而六辔在手\n",
      "Strive daily  to be the better lady.\n",
      "人活着就是为了The Nameless\n",
      "树欲静而风不止\n",
      "天天好心情\n",
      "勤于事，慎于言\n",
      "人生好时节\n",
      "顺风不浪，逆风不怂\n",
      "瘦子的理想是长胖\n",
      "有无相生，难易相成。长短相形，高下相盈。\n",
      "布施\n",
      "持戒\n",
      "忍辱\n",
      "精进\n",
      "禅定\n",
      "般若\n",
      "Strive for the highest level: Virtue, Truth, Wisdom\n",
      "There is a crack in everything, that's how the light gets in\n",
      "不忘初心 心若向善 福虽未至 但祸已远去\n",
      "其实我是瓜子脸。。。。\n",
      "谈情 能有多难 补好青天 我再试试看\n",
      "历史更迭变换如此之多，人性却没有\n",
      "Fire the life\n",
      "临海听涛，剑指深蓝！\n",
      "Never too late\n",
      "no zuo ，no die\n",
      "档期已满，闭关勿扰\n",
      "怕什么真理无穷，进一寸有一寸的欢喜。\n",
      "爽借秋风明借月，动观流水静观山\n",
      "大会群不再拉人，请勿添加\n",
      "光明遍照十方世界\n",
      "念佛众生摄取不舍\n",
      "A little effort everyday, you will make a big difference.\n",
      "中高端家纺批发零售,厂家货源,一件代发,有需要的请呼13538968611\n",
      "AI\n",
      "广结善缘  至诚感通\n",
      "纵有疾风起，人生不言弃！がばれ！\n",
      "没事早点睡，有空多挣钱！\n",
      "求送豆豆\n",
      "People is his situation.\n",
      "\"to strive, to seek, to find, and never, ever to yield!\"\n",
      "独立.自由.< =\" 2764\"></>️.信任.相伴\n",
      "Beauty that comes with age\n",
      "学IT，就先学《周哥教IT》，腾讯课堂一站式。少说少吃多做多思考\n",
      "内在\n",
      "黄色大门🚪里有我未坐的火箭< =\" \n",
      "小时候，喜欢一个人，连作业本放一块，都觉得幸福\n",
      "Only oneself can decide who you are. 생활이 점점 좋아진다\n",
      "要努力。\n",
      "了凡四训\n",
      "有一家皮草店(雅宝城319)一页轻舟，双桨惊鸿，水天清\n",
      "江湖人称薛先生< =\" \n",
      "事不拖，话不多，人不作！\n",
      "入巷间.吃汤面\n",
      "If the road to dream is long,\n",
      "just enjoy the views around.\n",
      "爱是不死力量是疲惫生活中的英雄梦想\n",
      "--------------------------------------------------\n",
      "一共读入了823签名，其中281为空，占比34.14337788578372\n"
     ]
    }
   ],
   "source": [
    "import re\n",
    "\n",
    "cnt_all = 0\n",
    "cnt_empty = 0\n",
    "sign_list = []\n",
    "print('微信好友签名如下：\\n'+'-'*50)\n",
    "for i in friends:\n",
    "# 获取个性签名\n",
    "    signature = i[\"Signature\"].strip().replace(\"span\", \"\").replace(\"class\", \"\").replace(\"emoji\", \"\")\n",
    "# 正则匹配过滤掉emoji表情，例如emoji1f3c3等\n",
    "    rep = re.compile(\"1f\\d.+\")\n",
    "    signature = rep.sub(\"\", signature)\n",
    "    if not signature:\n",
    "        cnt_empty += 1\n",
    "    else:\n",
    "        print(signature)\n",
    "        sign_list.append(signature)\n",
    "    cnt_all += 1\n",
    "print('-'*50)\n",
    "print('一共读入了%s签名，其中%s为空，占比%s'%(cnt_all, cnt_empty, cnt_empty*100./cnt_all))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 拼接字符串\n",
    "text = \"\".join(sign_list)\n",
    "# jieba分词\n",
    "import jieba\n",
    "wordlist_jieba = jieba.cut(text, cut_all=True)\n",
    "word_list = [i for i in wordlist_jieba]\n",
    "wl_space_split = \" \".join(wordlist_jieba)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[('', 1418), ('的', 98), ('不', 38), ('我', 37), ('有', 32), ('你', 29), ('是', 27), ('自己', 19), ('在', 18), ('the', 16), ('了', 16), ('is', 15), ('努力', 15), ('要', 14), ('\\n', 14), ('就', 14), ('人', 14), ('生活', 14), ('而', 12), ('人生', 12), ('好', 10), ('做', 10), ('没有', 10), ('心', 10), ('如', 10), ('多', 10), ('都', 10), ('以', 10), ('之', 10), ('请', 10), ('愿', 9), ('什么', 9), ('和', 9), ('you', 8), ('得', 8), ('为', 8), ('也', 8), ('忘', 8), ('初心', 8), ('未来', 8), ('and', 7), ('快乐', 7), ('to', 7), ('梦想', 7), ('大', 7), ('与', 7), ('改变', 7), ('爱', 7), ('去', 7), ('就是', 6), ('赢', 6), ('不可', 6), ('可以', 6), ('但', 6), ('小', 6), ('好好', 6), ('幸福', 6), ('事', 6), ('时光', 6), ('世界', 6), ('等', 6), ('好友', 6), ('向', 6), ('死', 5), ('者', 5), ('无', 5), ('信任', 5), ('朋友', 5), ('让', 5), ('your', 5), ('吃', 5), ('一种', 5), ('in', 5), ('all', 5), ('行', 5), ('微', 5), ('信', 5), ('福', 5), ('满', 5), ('内', 5), ('不要', 5), ('2747', 5), ('不止', 4), ('明', 4), ('皆', 4), ('归', 4), ('新号', 4), ('到', 4), ('于', 4), ('不能', 4), ('中', 4), ('北京', 4), ('发', 4), ('life', 4), ('A', 4), ('能', 4), ('里', 4), ('小时', 4), ('吗', 4), ('一切', 4)]\n"
     ]
    }
   ],
   "source": [
    "import collections as cl\n",
    "word_dict = cl.Counter(word_list)\n",
    "#wl_space_split\n",
    "top_word_list = []\n",
    "for k in sorted(word_dict.items(), reverse=True, key=lambda x:x[1]):\n",
    "    top_word_list.append(k)\n",
    "print(top_word_list[:100])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<script>\n",
       "    require.config({\n",
       "        paths: {\n",
       "            'echarts': '/nbextensions/echarts/echarts.min', 'wordcloud': '/nbextensions/echarts/echarts-wordcloud.min'\n",
       "        }\n",
       "    });\n",
       "</script>\n",
       "    <div id=\"fcc1d30e00364a1984547ca57e3b7ddd\" style=\"width:1300px;height:620px;\"></div>\n",
       "\n",
       "\n",
       "<script>\n",
       "    require(['echarts', 'wordcloud'], function(echarts) {\n",
       "        \n",
       "var myChart_fcc1d30e00364a1984547ca57e3b7ddd = echarts.init(document.getElementById('fcc1d30e00364a1984547ca57e3b7ddd'), null, {renderer: 'canvas'});\n",
       "var option_fcc1d30e00364a1984547ca57e3b7ddd = {\n",
       "    \"title\": [\n",
       "        {\n",
       "            \"text\": \"\",\n",
       "            \"subtext\": \"\",\n",
       "            \"left\": \"auto\",\n",
       "            \"top\": \"auto\",\n",
       "            \"textStyle\": {\n",
       "                \"color\": \"#000\",\n",
       "                \"fontSize\": 18\n",
       "            },\n",
       "            \"subtextStyle\": {\n",
       "                \"color\": \"#aaa\",\n",
       "                \"fontSize\": 12\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"toolbox\": {\n",
       "        \"show\": true,\n",
       "        \"orient\": \"vertical\",\n",
       "        \"left\": \"95%\",\n",
       "        \"top\": \"center\",\n",
       "        \"feature\": {\n",
       "            \"saveAsImage\": {\n",
       "                \"show\": true,\n",
       "                \"title\": \"\\u4e0b\\u8f7d\\u56fe\\u7247\"\n",
       "            },\n",
       "            \"restore\": {\n",
       "                \"show\": true\n",
       "            },\n",
       "            \"dataView\": {\n",
       "                \"show\": true\n",
       "            }\n",
       "        }\n",
       "    },\n",
       "    \"series_id\": 977498,\n",
       "    \"tooltip\": {\n",
       "        \"trigger\": \"item\",\n",
       "        \"triggerOn\": \"mousemove|click\",\n",
       "        \"axisPointer\": {\n",
       "            \"type\": \"line\"\n",
       "        },\n",
       "        \"formatter\": null,\n",
       "        \"textStyle\": {\n",
       "            \"color\": \"#fff\",\n",
       "            \"fontSize\": 14\n",
       "        },\n",
       "        \"backgroundColor\": \"rgba(50,50,50,0.7)\",\n",
       "        \"borderColor\": \"#333\",\n",
       "        \"borderWidth\": 0\n",
       "    },\n",
       "    \"series\": [\n",
       "        {\n",
       "            \"type\": \"wordCloud\",\n",
       "            \"name\": \"\",\n",
       "            \"shape\": \"circle\",\n",
       "            \"rotationRange\": [\n",
       "                -90,\n",
       "                90\n",
       "            ],\n",
       "            \"rotationStep\": 45,\n",
       "            \"girdSize\": 20,\n",
       "            \"sizeRange\": [\n",
       "                20,\n",
       "                100\n",
       "            ],\n",
       "            \"data\": [\n",
       "                {\n",
       "                    \"name\": \"\",\n",
       "                    \"value\": 1418,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(15,28,11)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7684\",\n",
       "                    \"value\": 98,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(132,113,118)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\",\n",
       "                    \"value\": 38,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(113,82,54)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6211\",\n",
       "                    \"value\": 37,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(43,120,97)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6709\",\n",
       "                    \"value\": 32,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(43,151,6)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4f60\",\n",
       "                    \"value\": 29,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(8,63,55)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u662f\",\n",
       "                    \"value\": 27,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(51,90,66)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u81ea\\u5df1\",\n",
       "                    \"value\": 19,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(11,134,150)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5728\",\n",
       "                    \"value\": 18,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(47,8,98)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"the\",\n",
       "                    \"value\": 16,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(159,9,23)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e86\",\n",
       "                    \"value\": 16,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(136,101,138)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"is\",\n",
       "                    \"value\": 15,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(99,23,43)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u52aa\\u529b\",\n",
       "                    \"value\": 15,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(136,47,50)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8981\",\n",
       "                    \"value\": 14,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(3,45,5)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\n\",\n",
       "                    \"value\": 14,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(69,56,88)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c31\",\n",
       "                    \"value\": 14,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(44,6,90)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\",\n",
       "                    \"value\": 14,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(111,2,51)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u751f\\u6d3b\",\n",
       "                    \"value\": 14,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(103,108,95)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u800c\",\n",
       "                    \"value\": 12,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(132,103,93)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4eba\\u751f\",\n",
       "                    \"value\": 12,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(117,10,154)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(50,34,5)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u505a\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(149,85,53)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6ca1\\u6709\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(122,38,144)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5fc3\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(149,73,105)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5982\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,72,75)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u591a\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(56,48,44)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u90fd\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(110,145,5)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4ee5\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(70,11,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e4b\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(67,103,0)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8bf7\",\n",
       "                    \"value\": 10,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(160,10,141)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u613f\",\n",
       "                    \"value\": 9,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(12,91,92)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4ec0\\u4e48\",\n",
       "                    \"value\": 9,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(125,144,7)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u548c\",\n",
       "                    \"value\": 9,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(18,116,106)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"you\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(98,97,22)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f97\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(9,134,139)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e3a\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(80,128,35)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e5f\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(114,23,59)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5fd8\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(86,72,134)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u521d\\u5fc3\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(71,88,14)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u672a\\u6765\",\n",
       "                    \"value\": 8,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(149,6,78)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"and\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(125,127,149)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5feb\\u4e50\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(22,142,148)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"to\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(123,57,14)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u68a6\\u60f3\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(91,86,94)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5927\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(40,51,128)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0e\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(148,73,9)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6539\\u53d8\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(38,141,12)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7231\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(95,28,146)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53bb\",\n",
       "                    \"value\": 7,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(32,95,10)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c31\\u662f\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(79,97,112)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8d62\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(110,42,75)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u53ef\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(33,47,84)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53ef\\u4ee5\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(109,85,151)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4f46\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(53,46,0)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c0f\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(141,151,88)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u597d\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(14,112,124)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5e78\\u798f\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(86,53,52)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e8b\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(51,91,38)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65f6\\u5149\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(35,64,47)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e16\\u754c\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(110,78,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7b49\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(87,33,64)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u597d\\u53cb\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(126,111,50)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5411\",\n",
       "                    \"value\": 6,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(16,120,4)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6b7b\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(59,18,21)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8005\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(3,14,137)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65e0\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(18,146,76)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4fe1\\u4efb\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(41,83,59)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u670b\\u53cb\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(139,135,23)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u8ba9\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(31,121,21)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"your\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(55,141,159)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5403\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(142,43,143)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u79cd\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(74,158,78)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"in\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(133,144,15)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"all\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(136,97,90)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u884c\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(12,114,29)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5fae\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(126,72,153)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4fe1\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(122,27,84)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u798f\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(100,20,2)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u6ee1\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(153,47,51)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5185\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(0,5,63)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u8981\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(1,53,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"2747\",\n",
       "                    \"value\": 5,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(16,76,56)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u6b62\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(43,4,121)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u660e\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(154,8,157)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u7686\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(49,106,44)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5f52\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(113,12,48)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u65b0\\u53f7\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(81,143,122)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5230\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(47,99,131)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e8e\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(155,87,159)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e0d\\u80fd\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(106,121,141)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e2d\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(32,66,98)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5317\\u4eac\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(56,137,62)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u53d1\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(108,69,95)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"life\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,111,30)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"A\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(153,91,134)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u80fd\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(97,90,141)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u91cc\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(99,36,157)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5c0f\\u65f6\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(29,92,28)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u5417\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(10,150,129)\"\n",
       "                        }\n",
       "                    }\n",
       "                },\n",
       "                {\n",
       "                    \"name\": \"\\u4e00\\u5207\",\n",
       "                    \"value\": 4,\n",
       "                    \"textStyle\": {\n",
       "                        \"normal\": {\n",
       "                            \"color\": \"rgb(125,44,12)\"\n",
       "                        }\n",
       "                    }\n",
       "                }\n",
       "            ]\n",
       "        }\n",
       "    ],\n",
       "    \"legend\": [\n",
       "        {\n",
       "            \"data\": [],\n",
       "            \"selectedMode\": \"multiple\",\n",
       "            \"show\": true,\n",
       "            \"left\": \"center\",\n",
       "            \"top\": \"top\",\n",
       "            \"orient\": \"horizontal\",\n",
       "            \"textStyle\": {\n",
       "                \"fontSize\": 12,\n",
       "                \"color\": \"#333\"\n",
       "            }\n",
       "        }\n",
       "    ],\n",
       "    \"backgroundColor\": \"#fff\",\n",
       "    \"color\": [\n",
       "        \"#c23531\",\n",
       "        \"#2f4554\",\n",
       "        \"#61a0a8\",\n",
       "        \"#d48265\",\n",
       "        \"#749f83\",\n",
       "        \"#ca8622\",\n",
       "        \"#bda29a\",\n",
       "        \"#6e7074\",\n",
       "        \"#546570\",\n",
       "        \"#c4ccd3\",\n",
       "        \"#f05b72\",\n",
       "        \"#ef5b9c\",\n",
       "        \"#f47920\",\n",
       "        \"#905a3d\",\n",
       "        \"#fab27b\",\n",
       "        \"#2a5caa\",\n",
       "        \"#444693\",\n",
       "        \"#726930\",\n",
       "        \"#b2d235\",\n",
       "        \"#6d8346\",\n",
       "        \"#ac6767\",\n",
       "        \"#1d953f\",\n",
       "        \"#6950a1\",\n",
       "        \"#918597\",\n",
       "        \"#f6f5ec\"\n",
       "    ]\n",
       "};\n",
       "myChart_fcc1d30e00364a1984547ca57e3b7ddd.setOption(option_fcc1d30e00364a1984547ca57e3b7ddd);\n",
       "\n",
       "    });\n",
       "</script>\n"
      ],
      "text/plain": [
       "<pyecharts.charts.wordcloud.WordCloud at 0x1b680e75dd8>"
      ]
     },
     "execution_count": 47,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from pyecharts import WordCloud\n",
    "\n",
    "#name = word_dict.keys()\n",
    "#value = word_dict.values()\n",
    "name = [i[0] for i in top_word_list[:100]]\n",
    "value = [i[1] for i in top_word_list[:100]]\n",
    "wordcloud = WordCloud(width=1300, height=620)\n",
    "wordcloud.add(\"\", name, value, word_size_range=[20, 100])\n",
    "\n",
    "wordcloud"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 作业\n",
    "- 提取关键词，并可视化\n",
    "- tf-idf或textrank，参考[文章](https://www.cnblogs.com/zhbzz2007/p/6177832.html)\n",
    "![改变背景](https://img-blog.csdn.net/20180320224909906?watermark/2/text/Ly9ibG9nLmNzZG4ubmV0L3UwMTI0ODUwOTk=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "keywords by tfidf:\n",
      "线程/ CPU/ 进程/ 调度/ 多线程/ 程序执行/ 每个/ 执行/ 堆栈/ 局部变量/ 单位/ 并发/ 分派/ 一个/ 共享/ 请求/ 最小/ 可以/ 允许/ 分配\n"
     ]
    }
   ],
   "source": [
    "from jieba import analyse\n",
    "# 引入TF-IDF关键词抽取接口\n",
    "tfidf = analyse.extract_tags\n",
    "\n",
    "# 原始文本\n",
    "text = \"线程是程序执行时的最小单位，它是进程的一个执行流，\\\n",
    "        是CPU调度和分派的基本单位，一个进程可以由很多个线程组成，\\\n",
    "        线程间共享进程的所有资源，每个线程有自己的堆栈和局部变量。\\\n",
    "        线程由CPU独立调度执行，在多CPU环境下就允许多个线程同时运行。\\\n",
    "        同样多线程也可以实现并发操作，每个请求分配一个线程来处理。\"\n",
    "# 基于TF-IDF算法进行关键词抽取\n",
    "keywords = tfidf(text)\n",
    "print(\"keywords by tfidf:\")\n",
    "# 输出抽取出的关键词\n",
    "print('/ '.join(keywords))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "keywords by textrank:\n",
      "线程/ 进程/ 调度/ 单位/ 操作/ 请求/ 分配/ 允许/ 基本/ 并发/ 独立/ 资源/ 共享/ 执行/ 堆栈/ 分派/ 运行/ 实现/ 处理/ 程序执行\n"
     ]
    }
   ],
   "source": [
    "from jieba import analyse\n",
    "# 引入TextRank关键词抽取接口\n",
    "textrank = analyse.textrank\n",
    "# 原始文本\n",
    "text = \"线程是程序执行时的最小单位，它是进程的一个执行流，\\\n",
    "        是CPU调度和分派的基本单位，一个进程可以由很多个线程组成，\\\n",
    "        线程间共享进程的所有资源，每个线程有自己的堆栈和局部变量。\\\n",
    "        线程由CPU独立调度执行，在多CPU环境下就允许多个线程同时运行。\\\n",
    "        同样多线程也可以实现并发操作，每个请求分配一个线程来处理。\"\n",
    "print(\"\\nkeywords by textrank:\")\n",
    "# 基于TextRank算法进行关键词抽取\n",
    "keywords = textrank(text)\n",
    "# 输出抽取出的关键词\n",
    "print('/ '.join(keywords))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 聊天机器人\n",
    "- [Char-RNN-TensorFlow](https://github.com/hzy46/Char-RNN-TensorFlow)\n",
    "- Multi-language Char RNN in TensorFlow. You can use this code to generate English text, Chinese poetries and lyrics, Japanese text and text in other language.\n",
    "\n",
    "- 一个基于最新版本TensorFlow的Char RNN实现。可以实现生成英文、写诗、歌词、小说、生成代码、生成日文等功能。\n",
    "- [TensorFlow中RNN实现的正确打开方式](https://blog.csdn.net/starzhou/article/details/77848156)\n",
    "- ![rnn](https://static.leiphone.com/uploads/new/article/pic/201709/8c9740c22176ac4b77f940a25ddecaa5.jpg)\n",
    "## itchat自动回复机器人\n",
    "- [itchat微信自动回复](https://zhuanlan.zhihu.com/p/34238048)\n",
    "![图](https://pic4.zhimg.com/80/v2-d67c42ef3c191ed94e8eded6f97f92db_hd.jpg)\n",
    "- [电脑控制台](https://pic2.zhimg.com/80/v2-5bca07798b9552cc7508503bbdfa561f_hd.jpg)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "#_*_ coding:utf-8 _*_\n",
    "#__author__='阳光流淌007'\n",
    "import re\n",
    "import time\n",
    "import itchat\n",
    "from itchat.content import *\n",
    "\n",
    "@itchat.msg_register([TEXT])\n",
    "def text_reply(msg):\n",
    "    friend = itchat.search_friends(userName=msg['FromUserName'])\n",
    "    replyContent = \"收到您于%s发送的【%s】\" % (time.strftime('%m-%d %H:%M',time.localtime()), msg['Type'])\n",
    "    if msg['Type'] == 'Text':\n",
    "        if re.search(r\"快乐\",msg['Content']):\n",
    "            replyContent += \"【衷心感谢您的祝福,祝您：新年快乐😊😊😊,开开心心[耶][耶][耶],身体健康[發][發][發],狗年大吉旺旺旺🐶🐶🐶】\"\n",
    "            itchat.send('@img@%s' % '/Users/xxx/moneyGod.jpg',toUserName=msg['FromUserName'])\n",
    "    itchat.send(\"好友:【%s（昵称：%s）】于：【%s】发来消息: 【%s】\" % (friend['NickName'], friend['RemarkName'], time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()), msg['Text']),toUserName='filehelper')\n",
    "    itchat.send(replyContent,toUserName=msg['FromUserName'])\n",
    "    print(\"于【%s】收到好友【%s（昵称：%s）】发来的【%s】: 【%s】\" % (time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()), friend['NickName'], friend['RemarkName'], msg['Type'], msg['Content']))\n",
    "    print(\"于【%s】回复：%s\" % (time.strftime('%Y-%m-%d %H:%M:%S',time.localtime()), replyContent)+'\\n')\n",
    "itchat.auto_login(hotReload=True)\n",
    "itchat.run()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 作业\n",
    "- 请动手实现微信聊天机器人\n",
    "- 公众号机器人聊天体验：![公众号体验](https://mmbiz.qpic.cn/mmbiz/xDuartOxdiaBa2kcRBJL3ibibxPlb0uiaBcpg6fzGUD3trjNW0taOTsoSuIYBwatz9XubGh5YjjmadcoP8LeqLu1Cg/640?tp=webp&wxfrom=5&wx_lazy=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "128\n",
      "(32, 128)\n"
     ]
    }
   ],
   "source": [
    "import tensorflow as tf\n",
    "import numpy as np\n",
    "\n",
    "cell = tf.nn.rnn_cell.BasicRNNCell(num_units=128) # state_size = 128\n",
    "print(cell.state_size) # 128\n",
    "inputs = tf.placeholder(np.float32, shape=(32, 100)) # 32 是 batch_size\n",
    "h0 = cell.zero_state(32, np.float32) # 通过zero_state得到一个全0的初始状态，形状为(batch_size, state_size)\n",
    "output, h1 = cell.call(inputs, h0) #调用call函数\n",
    "print(h1.shape) # (32, 128)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [
    {
     "ename": "ValueError",
     "evalue": "Variable kernel already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:\n\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\ops.py\", line 1470, in __init__\n    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\ops.py\", line 2956, in create_op\n    op_def=op_def)\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\op_def_library.py\", line 787, in _apply_op_helper\n    op_def=op_def)\n",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mValueError\u001b[0m                                Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-70-dc30e91d23c0>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m      3\u001b[0m \u001b[0minputs\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mtf\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mplaceholder\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfloat32\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mshape\u001b[0m\u001b[1;33m=\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m32\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;36m100\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;31m# 32 是 batch_size\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      4\u001b[0m \u001b[0mh0\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mlstm_cell\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mzero_state\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m32\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mnp\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfloat32\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;31m# 通过zero_state得到一个全0的初始状态\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 5\u001b[1;33m \u001b[0moutput\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mh1\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mlstm_cell\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcall\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0minputs\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mh0\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      6\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mh1\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mh\u001b[0m\u001b[1;33m)\u001b[0m  \u001b[1;31m# shape=(32, 128)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m      7\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mh1\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mc\u001b[0m\u001b[1;33m)\u001b[0m  \u001b[1;31m# shape=(32, 128)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\rnn_cell_impl.py\u001b[0m in \u001b[0;36mcall\u001b[1;34m(self, inputs, state)\u001b[0m\n\u001b[0;32m    436\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    437\u001b[0m     \u001b[1;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_linear\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 438\u001b[1;33m       \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_linear\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0m_Linear\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0minputs\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mh\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;36m4\u001b[0m \u001b[1;33m*\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_num_units\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;32mTrue\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    439\u001b[0m     \u001b[1;31m# i = input_gate, j = new_input, f = forget_gate, o = output_gate\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    440\u001b[0m     i, j, f, o = array_ops.split(\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\rnn_cell_impl.py\u001b[0m in \u001b[0;36m__init__\u001b[1;34m(self, args, output_size, build_bias, bias_initializer, kernel_initializer)\u001b[0m\n\u001b[0;32m   1169\u001b[0m           \u001b[0m_WEIGHTS_VARIABLE_NAME\u001b[0m\u001b[1;33m,\u001b[0m \u001b[1;33m[\u001b[0m\u001b[0mtotal_arg_size\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0moutput_size\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1170\u001b[0m           \u001b[0mdtype\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mdtype\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1171\u001b[1;33m           initializer=kernel_initializer)\n\u001b[0m\u001b[0;32m   1172\u001b[0m       \u001b[1;32mif\u001b[0m \u001b[0mbuild_bias\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1173\u001b[0m         \u001b[1;32mwith\u001b[0m \u001b[0mvs\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mvariable_scope\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mouter_scope\u001b[0m\u001b[1;33m)\u001b[0m \u001b[1;32mas\u001b[0m \u001b[0minner_scope\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\variable_scope.py\u001b[0m in \u001b[0;36mget_variable\u001b[1;34m(name, shape, dtype, initializer, regularizer, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)\u001b[0m\n\u001b[0;32m   1201\u001b[0m       \u001b[0mpartitioner\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mpartitioner\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalidate_shape\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mvalidate_shape\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1202\u001b[0m       \u001b[0muse_resource\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0muse_resource\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcustom_getter\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcustom_getter\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1203\u001b[1;33m       constraint=constraint)\n\u001b[0m\u001b[0;32m   1204\u001b[0m get_variable_or_local_docstring = (\n\u001b[0;32m   1205\u001b[0m     \"\"\"%s\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\variable_scope.py\u001b[0m in \u001b[0;36mget_variable\u001b[1;34m(self, var_store, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)\u001b[0m\n\u001b[0;32m   1090\u001b[0m           \u001b[0mpartitioner\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mpartitioner\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalidate_shape\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mvalidate_shape\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1091\u001b[0m           \u001b[0muse_resource\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0muse_resource\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcustom_getter\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcustom_getter\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m-> 1092\u001b[1;33m           constraint=constraint)\n\u001b[0m\u001b[0;32m   1093\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m   1094\u001b[0m   def _get_partitioned_variable(self,\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\variable_scope.py\u001b[0m in \u001b[0;36mget_variable\u001b[1;34m(self, name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, custom_getter, constraint)\u001b[0m\n\u001b[0;32m    423\u001b[0m           \u001b[0mcaching_device\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcaching_device\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mpartitioner\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mpartitioner\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    424\u001b[0m           \u001b[0mvalidate_shape\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mvalidate_shape\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0muse_resource\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0muse_resource\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 425\u001b[1;33m           constraint=constraint)\n\u001b[0m\u001b[0;32m    426\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    427\u001b[0m   def _get_partitioned_variable(\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\variable_scope.py\u001b[0m in \u001b[0;36m_true_getter\u001b[1;34m(name, shape, dtype, initializer, regularizer, reuse, trainable, collections, caching_device, partitioner, validate_shape, use_resource, constraint)\u001b[0m\n\u001b[0;32m    392\u001b[0m           \u001b[0mtrainable\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mtrainable\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mcollections\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcollections\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    393\u001b[0m           \u001b[0mcaching_device\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mcaching_device\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalidate_shape\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mvalidate_shape\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 394\u001b[1;33m           use_resource=use_resource, constraint=constraint)\n\u001b[0m\u001b[0;32m    395\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    396\u001b[0m     \u001b[1;32mif\u001b[0m \u001b[0mcustom_getter\u001b[0m \u001b[1;32mis\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[1;32mNone\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mc:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\ops\\variable_scope.py\u001b[0m in \u001b[0;36m_get_single_variable\u001b[1;34m(self, name, shape, dtype, initializer, regularizer, partition_info, reuse, trainable, collections, caching_device, validate_shape, use_resource, constraint)\u001b[0m\n\u001b[0;32m    740\u001b[0m                          \u001b[1;34m\"reuse=tf.AUTO_REUSE in VarScope? \"\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    741\u001b[0m                          \"Originally defined at:\\n\\n%s\" % (\n\u001b[1;32m--> 742\u001b[1;33m                              name, \"\".join(traceback.format_list(tb))))\n\u001b[0m\u001b[0;32m    743\u001b[0m       \u001b[0mfound_var\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0m_vars\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mname\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    744\u001b[0m       \u001b[1;32mif\u001b[0m \u001b[1;32mnot\u001b[0m \u001b[0mshape\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mis_compatible_with\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfound_var\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget_shape\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mValueError\u001b[0m: Variable kernel already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:\n\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\ops.py\", line 1470, in __init__\n    self._traceback = self._graph._extract_stack()  # pylint: disable=protected-access\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\ops.py\", line 2956, in create_op\n    op_def=op_def)\n  File \"c:\\program files (x86)\\python\\lib\\site-packages\\tensorflow\\python\\framework\\op_def_library.py\", line 787, in _apply_op_helper\n    op_def=op_def)\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 601, in urlopen\n",
      "    chunked=chunked)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 387, in _make_request\n",
      "    six.raise_from(e, None)\n",
      "  File \"<string>\", line 2, in raise_from\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 383, in _make_request\n",
      "    httplib_response = conn.getresponse()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 1331, in getresponse\n",
      "    response.begin()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 297, in begin\n",
      "    version, status, reason = self._read_status()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\http\\client.py\", line 266, in _read_status\n",
      "    raise RemoteDisconnected(\"Remote end closed connection without\"\n",
      "http.client.RemoteDisconnected: Remote end closed connection without response\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 440, in send\n",
      "    timeout=timeout\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 639, in urlopen\n",
      "    _stacktrace=sys.exc_info()[2])\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\util\\retry.py\", line 388, in increment\n",
      "    raise MaxRetryError(_pool, url, error or ResponseError(cause))\n",
      "urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='webpush.wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/synccheck?r=1530636286251&skey=%40crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&sid=%2FQFFy7292WIdkXuD&uin=965715160&deviceid=e555662921012661&synckey=1_679599800%7C2_679599929%7C3_679599906%7C11_679599878%7C201_1530636288%7C203_1530632890%7C1000_1530605162%7C1001_1530605234&_=1530636286251 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 303, in sync_check\n",
      "    r = self.s.get(url, params=params, headers=headers, timeout=config.TIMEOUT)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 521, in get\n",
      "    return self.request('GET', url, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 508, in request\n",
      "    resp = self.send(prep, **send_kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 618, in send\n",
      "    r = adapter.send(request, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 502, in send\n",
      "    raise ProxyError(e, request=request)\n",
      "requests.exceptions.ProxyError: HTTPSConnectionPool(host='webpush.wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/synccheck?r=1530636286251&skey=%40crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&sid=%2FQFFy7292WIdkXuD&uin=965715160&deviceid=e555662921012661&synckey=1_679599800%7C2_679599929%7C3_679599906%7C11_679599878%7C201_1530636288%7C203_1530632890%7C1000_1530605162%7C1001_1530605234&_=1530636286251 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response',)))\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 247, in maintain_loop\n",
      "    i = sync_check(self)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 306, in sync_check\n",
      "    if not isinstance(e.args[0].args[1], BadStatusLine):\n",
      "IndexError: tuple index out of range\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 595, in urlopen\n",
      "    self._prepare_proxy(conn)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 816, in _prepare_proxy\n",
      "    conn.connect()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connection.py\", line 326, in connect\n",
      "    ssl_context=context)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\util\\ssl_.py\", line 329, in ssl_wrap_socket\n",
      "    return context.wrap_socket(sock, server_hostname=server_hostname)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 407, in wrap_socket\n",
      "    _context=self, _session=session)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 814, in __init__\n",
      "    self.do_handshake()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 1068, in do_handshake\n",
      "    self._sslobj.do_handshake()\n",
      "  File \"c:\\program files (x86)\\python\\lib\\ssl.py\", line 689, in do_handshake\n",
      "    self._sslobj.do_handshake()\n",
      "ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 440, in send\n",
      "    timeout=timeout\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\connectionpool.py\", line 639, in urlopen\n",
      "    _stacktrace=sys.exc_info()[2])\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\urllib3\\util\\retry.py\", line 388, in increment\n",
      "    raise MaxRetryError(_pool, url, error or ResponseError(cause))\n",
      "urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='webpush.wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/synccheck?r=1530660639234&skey=%40crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&sid=%2FQFFy7292WIdkXuD&uin=965715160&deviceid=e555662921012661&synckey=1_679599800%7C2_679599929%7C3_679599906%7C11_679599878%7C201_1530636288%7C203_1530632890%7C1000_1530605162%7C1001_1530605234&_=1530660639234 (Caused by ProxyError('Cannot connect to proxy.', ConnectionAbortedError(10053, '你的主机中的软件中止了一个已建立的连接。', None, 10053, None)))\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 303, in sync_check\n",
      "    r = self.s.get(url, params=params, headers=headers, timeout=config.TIMEOUT)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 521, in get\n",
      "    return self.request('GET', url, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 508, in request\n",
      "    resp = self.send(prep, **send_kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\sessions.py\", line 618, in send\n",
      "    r = adapter.send(request, **kwargs)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\requests\\adapters.py\", line 502, in send\n",
      "    raise ProxyError(e, request=request)\n",
      "requests.exceptions.ProxyError: HTTPSConnectionPool(host='webpush.wx.qq.com', port=443): Max retries exceeded with url: /cgi-bin/mmwebwx-bin/synccheck?r=1530660639234&skey=%40crypt_15c532e6_8ca8c2c21af3e969742f464c030f2be4&sid=%2FQFFy7292WIdkXuD&uin=965715160&deviceid=e555662921012661&synckey=1_679599800%7C2_679599929%7C3_679599906%7C11_679599878%7C201_1530636288%7C203_1530632890%7C1000_1530605162%7C1001_1530605234&_=1530660639234 (Caused by ProxyError('Cannot connect to proxy.', ConnectionAbortedError(10053, '你的主机中的软件中止了一个已建立的连接。', None, 10053, None)))\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 247, in maintain_loop\n",
      "    i = sync_check(self)\n",
      "  File \"c:\\program files (x86)\\python\\lib\\site-packages\\itchat\\components\\login.py\", line 306, in sync_check\n",
      "    if not isinstance(e.args[0].args[1], BadStatusLine):\n",
      "IndexError: tuple index out of range\n",
      "\n",
      "LOG OUT!\n"
     ]
    }
   ],
   "source": [
    "#basic rnn\n",
    "lstm_cell = tf.nn.rnn_cell.BasicLSTMCell(num_units=128)\n",
    "inputs = tf.placeholder(np.float32, shape=(32, 100)) # 32 是 batch_size\n",
    "h0 = lstm_cell.zero_state(32, np.float32) # 通过zero_state得到一个全0的初始状态\n",
    "output, h1 = lstm_cell.call(inputs, h0)\n",
    "print(h1.h)  # shape=(32, 128)\n",
    "print(h1.c)  # shape=(32, 128)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
